X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=m4%2Fpython_modules.m4;fp=m4%2Fpython_modules.m4;h=0000000000000000000000000000000000000000;hp=132c4c28bf0e1f743b8060dab6ed2e9ed875b4cf;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=0f77b5c9dfac44ff6eff8fb66fefadea72846c97 diff --git a/m4/python_modules.m4 b/m4/python_modules.m4 deleted file mode 100644 index 132c4c28..00000000 --- a/m4/python_modules.m4 +++ /dev/null @@ -1,23 +0,0 @@ -# python_modules.m4 -- Get the Python modules install path -# -# Copyright (C) 2014 - Jérémie Galarneau -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# 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"`])