make install
ldconfig
- If you do not want Python bindings, run ./configure --disable-python.
-
DEPENDENCIES
------------
(Debian : libpopt-dev)
(Fedora : popt)
python headers (optional)
- (Debian/Ubuntu : python-dev)
+ (Debian/Ubuntu : python3-dev)
swig >= 2.0 (optional)
(Debian/Ubuntu : swig2.0)
python 3.0 or better (optional)
(Debian/Ubuntu : python3)
+ If you want Python bindings, run ./configure --enable-python-bindings.
+ Please note that some distributions will need the following
+ environment variables set before running configure:
+
+ export PYTHON="python3"
+ export PYTHON_CONFIG="/usr/bin/python3-config"
For developers using the git tree:
# SWIG version needed or newer:
swig_version=2.0.0
-AC_ARG_ENABLE([python],
- [AC_HELP_STRING([--disable-python],
- [do not compile Python bindings])],
- [], [enable_python=yes])
+AC_ARG_ENABLE([python-bindings],
+ [AC_HELP_STRING([--enable-python-bindings],
+ [generate Python bindings])],
+ [enable_python=yes], [enable_python=no])
AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes])
if test "x${enable_python:-yes}" = xyes; then
- AC_MSG_NOTICE([You may configure with --disable-python ]dnl
-[if you do not want Python bindings.])
-
AX_PKG_SWIG($swig_version, [], [ AC_MSG_ERROR([SWIG $swig_version or newer is needed]) ])
AM_PATH_PYTHON
[python$PYTHON_VERSION-config python-config],
[no],
[`dirname $PYTHON`])
- AS_IF([test "$PYTHON_CONFIG" = no], [AC_MSG_ERROR([cannot find python-config for $PYTHON.])])
+ AS_IF([test "$PYTHON_CONFIG" = no], [AC_MSG_ERROR([cannot find python-config for $PYTHON. Do you have python-dev installed?])])
])
AC_MSG_CHECKING([python include flags])
PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
AC_MSG_RESULT([$PYTHON_INCLUDE])
])
+
+else
+ AC_MSG_NOTICE([You may configure with --enable-python-bindings ]dnl
+[if you want Python bindings.])
+
fi
pkg_modules="gmodule-2.0 >= 2.0.0"
INSTALLATION:
-By default, the Python bindings are installed.
-If you do not wish the Python bindings, you can configure with the
---disable-python option during the installation procedure:
+By default, the Python bindings are not generated.
+If you wish to generate and install the Python bindings, you can use the
+--enable-python-bindings configure option.
- $ ./configure --disable-python
+ $ ./configure --enable-python-bindings
The Python module is automatically generated using SWIG, therefore the
swig2.0 package on Debian/Ubuntu is requied.