On Mon, Nov 16, 2009 at 12:48 AM, David Cournapeau <da...@ar.media.kyoto-u.ac.jp> wrote: > josef.p...@gmail.com wrote: >> Are there new changes to the configuration needed? mingw 3.4.5, >> WindowsXP, Python 2.5.2 >> >> Python.h is not picked up anymore: >> >> _configtest.c:1:20: Python.h: No such file or directory >> >> Josef >> >> C:\Josef\_progs\Subversion\numpy-trunk>setup.py bdist > > Could you try with > > python setup.py build -c mingw32 bdist > > I have just tried on the same configuration as you, and I cannot > reproduce the problem with the above command. > > David
It was a change I did. Following a recommendation on the cython list I had added include_dirs in distutils.cfg [build_ext] include_dirs=c:\programs\python25\lib\site-packages\numpy\core\include As a consequence numpy build had dropped the python include directory from the build options. Now, the numpy build runs for a while then breaks while building umath. Any ideas? setup.py bdist and python setup.py build -c mingw32 bdist give the same results. Thanks, Josef <...> building 'numpy.core.umath' extension compiling C sources C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes creating build\temp.win32-2.5\Release\numpy\core\src\umath compile options: '-Ibuild\src.win32-2.5\numpy\core\src\umath -Inumpy\core\includ e -Ibuild\src.win32-2.5\numpy\core\include/numpy -Inumpy\core\src\private -Inump y\core\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -In umpy\core\src\umath -Inumpy\core\include -IC:\Programs\Python25\include -IC:\Pro grams\Python25\PC -Ibuild\src.win32-2.5\numpy\core\src\multiarray -Ibuild\src.wi n32-2.5\numpy\core\src\umath -c' gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ibuild\src.win32-2.5\numpy\core\s rc\umath -Inumpy\core\include -Ibuild\src.win32-2.5\numpy\core\include/numpy -In umpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy\core\src\npymath -In umpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\core\include -IC:\Progra ms\Python25\include -IC:\Programs\Python25\PC -Ibuild\src.win32-2.5\numpy\core\s rc\multiarray -Ibuild\src.win32-2.5\numpy\core\src\umath -c numpy\core\src\umath \umathmodule_onefile.c -o build\temp.win32-2.5\Release\numpy\core\src\umath\umat hmodule_onefile.o g++ -mno-cygwin -shared build\temp.win32-2.5\Release\numpy\core\src\umath\umathm odule_onefile.o -LC:\Programs\Python25\libs -LC:\Programs\Python25\PCBuild -Lbui ld\temp.win32-2.5 -lnpymath -lpython25 -lmsvcr71 -o build\lib.win32-2.5\numpy\co re\umath.pyd build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xce07): undefined reference to `npy_spacingf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xcefc): undefined reference to `npy_nextafterf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xdeb7): undefined reference to `npy_spacing' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xdfae): undefined reference to `npy_nextafter' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xef75): undefined reference to `npy_spacingl' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0xf0b0): undefined reference to `npy_nextafterl' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1c3c6): undefined reference to `npy_csqrtf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1c436): undefined reference to `npy_clogf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1c4d6): undefined reference to `npy_cexpf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1c78c): undefined reference to `npy_cpowf' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1d28b): undefined reference to `npy_csqrt' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1d30b): undefined reference to `npy_clog' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1d3ab): undefined reference to `npy_cexp' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1d711): undefined reference to `npy_cpow' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1e379): undefined reference to `npy_csqrtl' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1e429): undefined reference to `npy_clogl' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1e4e9): undefined reference to `npy_cexpl' build\temp.win32-2.5\Release\numpy\core\src\umath\umathmodule_onefile.o:umathmod ule_onefile.c:(.text+0x1ea15): undefined reference to `npy_cpowl' collect2: ld returned 1 exit status error: Command "g++ -mno-cygwin -shared build\temp.win32-2.5\Release\numpy\core\ src\umath\umathmodule_onefile.o -LC:\Programs\Python25\libs -LC:\Programs\Python 25\PCBuild -Lbuild\temp.win32-2.5 -lnpymath -lpython25 -lmsvcr71 -o build\lib.wi n32-2.5\numpy\core\umath.pyd" failed with exit status 1 > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion