Bugs item #768068, was opened at 2003-07-08 16:44 Message generated for change (Settings changed) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=768068&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.3 >Status: Closed >Resolution: Out of Date Priority: 3 Submitted By: Skip Montanaro (montanaro) Assigned to: Skip Montanaro (montanaro) Summary: Explicit interp reference during build fails Initial Comment: I think this is MacPython-specific and not just a general Python build issue. If I explicitly reference the Python executable when building an out-of-tree extension module I get an error building the .so file because it stripped the dirname() of the python.exe file. Here's a simple example. I have a directory with a single extension module and simple setup.py. I want to build it with ~/src/python/head/dist/src/build.pg/python.exe Compilation works fine. Linkage bombs. % pwd /Users/skip/src/PyExtensions1.5/python2.2 montanaro:python2.2% ls -l total 8 -rw-r--r-- 1 skip staff 1318 Jan 21 2002 llopmodule.c -rw-rw-r-- 1 skip staff 114 Jan 21 2002 setup.py montanaro:python2.2% cat setup.py from distutils.core import setup, Extension setup(name="llop", ext_modules=[Extension("llop", ["llopmodule.c"])]) montanaro:python2.2% ~/src/python/head/dist/src/ build.pg/python.exe setup.py build running build running build_ext building 'llop' extension creating build creating build/temp.darwin-6.6-Power_Macintosh-2.3 gcc -pg -fno-strict-aliasing -Wno-long-double -no-cpp- precomp -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/ Users/skip/src/python/head/dist/src/Include -I/Users/skip/ src/python/head/dist/src/build.pg -c llopmodule.c -o build/ temp.darwin-6.6-Power_Macintosh-2.3/llopmodule.o creating build/lib.darwin-6.6-Power_Macintosh-2.3 gcc -pg -bundle -bundle_loader python.exe build/ temp.darwin-6.6-Power_Macintosh-2.3/llopmodule.o -o build/lib.darwin-6.6-Power_Macintosh-2.3/llop.so ld: can't open: python.exe (No such file or directory, errno = 2) error: command 'gcc' failed with exit status 1 ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2004-07-16 09:53 Message: Logged In: YES user_id=45365 Skip, I think this problem has gone away as a side-effect of the new way to create extension modules, at least if you make sure you have MACOSX_TARGET_PLATFORM=10.3 in your environment when configuring and building python. Could you try, please, and close the report if this appears to work for you? Otherwise please reassign back to me. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2003-07-21 16:00 Message: Logged In: YES user_id=45365 This won't be fixed for 2.3, after discussion on python-dev it seems the situation is not so common, so it can wait for 2.3.1. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=768068&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com