X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=m4%2Fbt_python_modules.m4;fp=m4%2Fbt_python_modules.m4;h=0000000000000000000000000000000000000000;hp=e6955fc7079c89668960658ddb0ae180ee44fa40;hb=e015bae2ef343b30c890eebb9182a8be13d12ed0;hpb=887d26fa0fd0ae0c5c15e4b885473c4cdc0bf078 diff --git a/m4/bt_python_modules.m4 b/m4/bt_python_modules.m4 deleted file mode 100644 index e6955fc7..00000000 --- a/m4/bt_python_modules.m4 +++ /dev/null @@ -1,21 +0,0 @@ -# SPDX-License-Identifier: FSFULLR -# -# Copyright (C) 2014 Jérémie Galarneau -# -# bt_python_modules.m4 -- Get the Python modules install path - -# While extra Python modules are generaly installed in the Python -# interpreter's "site-packages" directory, Debian prefers using the -# "dist-packages" nomenclature. This macro uses the interpreter -# designated by the PYTHON variable to check the interpreter's PATH -# and sets the PYTHON_MODULES_PATH by taking the prefix into account. - -# AM_PATH_PYTHON_MODULES(PYTHON) -# --------------------------------------------------------------------------- -AC_DEFUN([AM_PATH_PYTHON_MODULES], - [prog="import sys -for path in sys.path: - if path.endswith(\"-packages\"): - print(path[[path.find(\"/lib\"):]]) - break" - PYTHON_MODULES_PATH=`${$1} -c "$prog"`])