This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils compiles extensions so that Python.h cannot be found
Type: Stage: resolved
Components: Distutils Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: tarek Nosy List: BreamoreBoy, eric.araujo, exarkun, tarek
Priority: critical Keywords:

Created on 2010-06-21 22:03 by exarkun, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg108321 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2010-06-21 22:03
With a checkout of the py3k branch, building an extension module using distutils fails:

  error: Python.h: No such file or directory

This is clearly because the wrong -I option is being supplied:

  gcc -pthread -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/exarkun/Projects/python-signalfd/trunk/Include -I/home/exarkun/Projects/python/branches/py3k -c signalfd/_signalfd.c -o build/temp.linux-i686-3.2/signalfd/_signalfd.o

Building the extension with Python 3.1 all the way back through Python 2.3 does work, though.
msg112126 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-31 09:52
Reading msg108321 I'm setting this to 3.2.  Given that the first alpha is due now shouldn't this be addressed, apologies if this has already happened but I don't know here to look?
msg114523 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-08-21 17:31
Jean-Paul, can you still reproduce the bug?

According to Antoine, the configure script has seen changes but sysconfig has not been updated; this could be the source of a handful of bugs.
msg115146 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2010-08-28 02:17
exarkun@boson:~/Projects/python-signalfd/trunk$ PYTHONPATH= ~/Projects/python/branches/py3k/python setup.py build_ext -i
running build_ext
building 'signalfd._signalfd' extension
creating build
creating build/temp.linux-i686-3.2
creating build/temp.linux-i686-3.2/signalfd
gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/exarkun/Projects/python/branches/py3k/Include -I/home/exarkun/Projects/python/branches/py3k -c signalfd/_signalfd.c -o build/temp.linux-i686-3.2/signalfd/_signalfd.o
gcc -pthread -shared build/temp.linux-i686-3.2/signalfd/_signalfd.o -o /home/exarkun/Projects/python-signalfd/trunk/signalfd/_signalfd.so
exarkun@boson:~/Projects/python-signalfd/trunk$
History
Date User Action Args
2022-04-11 14:57:02adminsetgithub: 53299
2010-08-28 09:01:27eric.araujosetstage: resolved
2010-08-28 02:17:49exarkunsetstatus: open -> closed
resolution: fixed
2010-08-28 02:17:37exarkunsetmessages: + msg115146
2010-08-21 17:31:50eric.araujosetnosy: + eric.araujo
messages: + msg114523
2010-07-31 09:52:53BreamoreBoysetnosy: + BreamoreBoy

messages: + msg112126
versions: + Python 3.2, - Python 3.1
2010-06-21 22:03:28exarkuncreate