Issue 9053: distutils compiles extensions so that Python.h cannot be found (original) (raw)

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 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:02 admin set github: 53299
2010-08-28 09:01:27 eric.araujo set stage: resolved
2010-08-28 02:17:49 exarkun set status: open -> closedresolution: fixed
2010-08-28 02:17:37 exarkun set messages: +
2010-08-21 17:31:50 eric.araujo set nosy: + eric.araujomessages: +
2010-07-31 09:52:53 BreamoreBoy set nosy: + BreamoreBoymessages: + versions: + Python 3.2, - Python 3.1
2010-06-21 22:03:28 exarkun create