On Wednesday, May 09, 2007, at 03:47PM, "Jens Thomas" <[EMAIL PROTECTED]> wrote: >Hi Ronald, > >Ronald Oussoren wrote: >> >> On Wednesday, May 09, 2007, at 02:19PM, "Jens Thomas" <[EMAIL PROTECTED]> >> wrote: >> >>> 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'] >>> >> >> All arguments should be separate elements in the list, instead of stuffing >> one string with several arguments in the list. >> >> BTW. I'm not at al sure that this will work, pyconfig.h contains some >> byte-order specific values. The Python 2.4.4 and 2.5 distributions contain >> patches that make sure that C code sees the right values for those >> definitions, but I don't think this is present in Apple python2.3 build. >> >Many thanks for that - it's exactly what I needed - and not quite as >mind-numbingly boring as cutting and pasting the make invocation for >each object into the terminal as I was previously... :-) > >I'm using my own python 2.5 universal binary build, so hopefully I won't >hit the problems you mention.
The trace in your previous message is for python2.3, that may be a problem with your shell environment ;-) If you're using the builtin universal binary support in python 2.5 you don't have to modify the Numeric setup file, distutils will build universal by default. You can enable this by using the configure flag --enable-universalsdk. This flag can be used with framework builds and plain unix builds. Ronald > >Thanks again, > >Jens > > _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig