Hi,

I'm having trouble building Numeric Python 24.2 as a universal binary. I 
know that Numeric is deprecated, but for various reasons I still need to 
use it.

I've edited the file customize.py to include the following:

extra_compile_args = ['-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch 
i386 -arch ppc']
extra_link_args = ['-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk 
-arch ppc -arch i386']

This is then read in by setup.py and sets the extra_compile_args for all 
the extensions.

However, it fails when it tries to build as it can't find several 
includes files as shown in the error message below:

building '_numpy' extension
creating build/temp.darwin-8.9.1-i386-2.3
creating build/temp.darwin-8.9.1-i386-2.3/Src
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -IInclude -IPackages/FFT/Include 
-IPackages/RNG/Include 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 
-c Src/arrayobject.c -o 
build/temp.darwin-8.9.1-i386-2.3/Src/arrayobject.o -isysroot 
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
In file included from Src/arrayobject.c:17:
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:19:20:
 
error: limits.h: No such file or directory
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:28:19:
 
error: stdio.h: No such file or directory
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:30:5:
 
error: #error "Python.h requires that stdio.h define NULL."
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:33:20:
 
error: string.h: No such file or directory
/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/Python.h:34:19:
 
error: errno.h: No such file or directory
<snip>

However, if I cut and paste the make line:

gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -IInclude -IPackages/FFT/Include 
-IPackages/RNG/Include 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 
-c Src/arrayobject.c -o 
build/temp.darwin-8.9.1-i386-2.3/Src/arrayobject.o -isysroot 
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc

 into the terminal, it appears to work fine. Adding other arguments 
(e.g. -g) using the extra_compile_args flag works fine, so it's 
something specific about the isysroot argument that's causing the 
problem with it not finding the include files (hence my asking on this 
list).

Does anyone have any suggestions as to how to debug this?

Best wishes,

Jens
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to