Package: python3.3
Version: 3.3.0~b2-1
Severity: normal
I have a package that uses distutils.sysconfig.get_python_inc() to
locate Python.h.
$ python3.3 -c 'import distutils.sysconfig;
print(distutils.sysconfig.get_python_inc())'
/usr/include/python3.3m
The problem is that Python.h includes pyconfig.h, which has been moved
to /usr/include/i386-linux-gnu/python3.3m/pyconfig.h, but there is no
(straightforward) way in distutils.sysconfig to find that.
The plat_specific argument of get_python_inc should be the right
solution, as the comment says:
If 'plat_specific' is false (the default), this is the path to the
non-platform-specific header files, i.e. Python.h and so on;
otherwise, this is the path to platform-specific header files
(namely pyconfig.h).
But get_python_inc(True/False) return the same thing. It seems this
function is coded under the assumption of a GNU-style
--prefix/--exec-prefix distinction, but has no provision for different
include directories under a common prefix. So the fix will probably
have to be to patch that Python code a bit to make
get_python_inc(True) return
'/usr/include/i386-linux-gnu/python3.3m/pyconfig.h'.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]