Move to kernel style SPDX license identifiers
[babeltrace.git] / m4 / bt_python_modules.m4
1 # SPDX-License-Identifier: FSFULLR
2 #
3 # Copyright (C) 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 #
5 # bt_python_modules.m4 -- Get the Python modules install path
6
7 # While extra Python modules are generaly installed in the Python
8 # interpreter's "site-packages" directory, Debian prefers using the
9 # "dist-packages" nomenclature. This macro uses the interpreter
10 # designated by the PYTHON variable to check the interpreter's PATH
11 # and sets the PYTHON_MODULES_PATH by taking the prefix into account.
12
13 # AM_PATH_PYTHON_MODULES(PYTHON)
14 # ---------------------------------------------------------------------------
15 AC_DEFUN([AM_PATH_PYTHON_MODULES],
16 [prog="import sys
17 for path in sys.path:
18 if path.endswith(\"-packages\"):
19 print(path[[path.find(\"/lib\"):]])
20 break"
21 PYTHON_MODULES_PATH=`${$1} -c "$prog"`])
This page took 0.029613 seconds and 4 git commands to generate.