Lines Matching full:python

14 #   This macro checks for Python and tries to get the include path to
15 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
17 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
19 # You can search for some particular version of Python by passing a
27 # python. If you want it to continue, set optional to true, like
31 # This macro should work for all versions of Python >= 2.1.0. As an end
32 # user, you can disable the check for the python version by setting the
36 # If you need to use this macro for an older Python version, please
88 # Allow the use of a (user set) custom python version
90 AC_ARG_VAR([PYTHON_VERSION],[The installed Python
92 will be appended to the Python interpreter
95 AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
96 if test -z "$PYTHON"; then
97 AC_MSG_WARN([Cannot find python$PYTHON_VERSION in your system path])
99 AC_MSG_ERROR([Giving up, python development not available])
107 # Check for a version of Python >= 2.1.0
109 AC_MSG_CHECKING([for a version of Python >= '2.1.0'])
110 ac_supports_python_ver=`$PYTHON -c "import sys; \
118 doesn't work properly with versions of Python before
141 # A Python shim class, VPy, is used to implement correct version comparisons via
143 # Python 2.7.10 (the ".1" being evaluated as less than ".3").
146 AC_MSG_CHECKING([for a version of Python $1])
167 ac_supports_python_ver=`$PYTHON -c "import ax_python_devel_vpy; \
175 AC_MSG_WARN([this package requires Python $1.
176 If you have it installed, but it isn't the default Python
193 AC_MSG_CHECKING([for the sysconfig Python package])
194 ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`
201 AC_MSG_CHECKING([for the distutils Python package])
202 ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1`
207 AC_MSG_WARN([cannot import Python module "distutils".
208 Please check your Python installation. The error was:
221 # Check for Python include path
223 AC_MSG_CHECKING([for Python include path])
227 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
229 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
233 python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
235 plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \
251 # Check for Python library path
253 AC_MSG_CHECKING([for Python library path])
257 ac_python_version=`cat<<EOD | $PYTHON -
271 ac_python_version=`$PYTHON -c "import sys; \
278 [If available, contains the Python version number currently in use.])
281 ac_python_libdir=`cat<<EOD | $PYTHON -
291 ac_python_library=`cat<<EOD | $PYTHON -
296 print ('python'+c[['LDVERSION']])
298 print ('python'+c[['VERSION']])
301 # This small piece shamelessly adapted from PostgreSQL python macro;
312 ac_python_libdir=`$PYTHON -c \
321 Cannot determine location of your Python DSO. Please check it was installed with
340 AC_MSG_CHECKING([for Python site-packages path])
343 PYTHON_SITE_PKG=`$PYTHON -c "
359 PYTHON_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
369 AC_MSG_CHECKING([for Python platform specific site-packages path])
372 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "
388 PYTHON_PLATFORM_SITE_PKG=`$PYTHON -c "$IMPORT_SYSCONFIG; \
398 AC_MSG_CHECKING(python extra libraries)
400 PYTHON_EXTRA_LIBS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
410 AC_MSG_CHECKING(python extra linking flags)
412 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "$IMPORT_SYSCONFIG; \
424 AC_MSG_CHECKING([consistency of all components of python development environment])
434 AC_LANG_PROGRAM([[#include <Python.h>]],
447 Could not link test program to Python. Maybe the main Python library has been
450 Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
453 You probably have to install the development version of the Python package