mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
python: assume support for Capsules
They were introduced in Python 2.7 and 3.1, so we can assume they exist (as Python 2.7 is the minimum version required, and 3.0 is long gone).
This commit is contained in:
@@ -92,10 +92,6 @@ AS_IF([test "x$enable_python" != "xno"],[
|
||||
|
||||
PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \
|
||||
print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"`
|
||||
AC_CHECK_LIB([c],[PyCapsule_New],
|
||||
[AC_DEFINE([HAVE_PYCAPSULE_NEW],1,
|
||||
[Found PyCapsule_New in libpython.])],
|
||||
[],[$PYTHON_BLDLIBRARY])
|
||||
AC_CHECK_LIB([c],[PyString_AsString],
|
||||
[AC_DEFINE([HAVE_PYSTRING_ASSTRING],1,
|
||||
[Found PyString_AsString in libpython.])],
|
||||
|
||||
Reference in New Issue
Block a user