This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Can't build C ext on OS X with 'altinstall' python
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, zenzen
Priority: normal Keywords:

Created on 2003-01-30 06:15 by zenzen, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (3)
msg14311 - (view) Author: Stuart Bishop (zenzen) Date: 2003-01-30 06:15
I think this is OS X specific, but I may be wrong. This also may be a fault of the build/installation scripts and not distutils.

After building python 2.3, and installing with 'make altinstall', I am unable to install packages with 'distutils'. gcc is being told to get stuff out of 'python', which doesn't exist (ie. the final component of the python interpreter's path is wrong).

gcc -bundle -bundle_loader /usr/local/stow/python-2.3/bin/python build/temp.darwin-6.3-Power_Macintosh-2.3/_PosixTimeZone.o -o build/lib.darwin-6.3-Power_Macintosh-2.3/_PosixTimeZone.so
ld: can't open: /usr/local/stow/python-2.3/bin/python (No such file or directory, errno = 2)
error: command 'gcc' failed with exit status 1
make: *** [build] Error 1
msg14312 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-25 13:19
Logged In: YES 
user_id=45365

The problem is that the Makefile LDFLAGS specify the bundle loader (the hosting main program) as $(bindir)/$(PYTHON), which doesn't exist after an altinstall. I'll fix this to refer to the altbininstall filename, which should always exist.
msg14313 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-25 13:24
Logged In: YES 
user_id=45365

Fixed in configure.in rev 1.392, configure rev. 1.381.
History
Date User Action Args
2022-04-10 16:06:19adminsetgithub: 37868
2003-01-30 06:15:56zenzencreate