[Python-bugs-list] [ python-Bugs-677293 ] Can't build C ext on OS X with 'altinstall' python
SourceForge.net
noreply@sourceforge.net
Tue, 25 Feb 2003 05:19:46 -0800
Bugs item #677293, was opened at 2003-01-30 07:15
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=677293&group_id=5470
Category: Distutils
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
>Assigned to: Jack Jansen (jackjansen)
Summary: Can't build C ext on OS X with 'altinstall' python
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2003-02-25 14:19
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=677293&group_id=5470