[issue11217] python-32 not linked in /usr/local/bin in framework builds

Tom Loredo report at bugs.python.org
Tue Feb 15 23:15:58 CET 2011


Tom Loredo <loredo at astro.cornell.edu> added the comment:

I believe the main Makefile makes the Mac/Makefile.in installunixtools target automatically, and I don't see that it should do "the right thing" regarding linking a python-32.

I did the brew install again, logging the output, and adding an explicit "make frameworkinstallunixtools" (which I believe executes the Make makefile installunixtools target).  This is the log output showing that target is executed already by default, and that it is not linking python2.7-32:


cd Mac && make installunixtools DESTDIR=""
if [ ! -d "/usr/local/Cellar/python/2.7.1/bin" ]; then  \
		/usr/local/bin/ginstall -c -d -m 755 "/usr/local/Cellar/python/2.7.1/bin" ;\
	fi
for fn in python pythonw idle pydoc python-config smtpd.py 2to3 \
		  python2.7 pythonw2.7 idle2.7 \
		  pydoc2.7 python2.7-config smtpd2.7.py \
		  2to3-2.7 ;\
	do \
		ln -fs "/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/${fn}" "/usr/local/Cellar/python/2.7.1/bin/${fn}" ;\
	done
==> make frameworkinstallunixtools
make frameworkinstallunixtools 
cd Mac && make installunixtools DESTDIR=""
if [ ! -d "/usr/local/Cellar/python/2.7.1/bin" ]; then  \
		/usr/local/bin/ginstall -c -d -m 755 "/usr/local/Cellar/python/2.7.1/bin" ;\
	fi
for fn in python pythonw idle pydoc python-config smtpd.py 2to3 \
		  python2.7 pythonw2.7 idle2.7 \
		  pydoc2.7 python2.7-config smtpd2.7.py \
		  2to3-2.7 ;\
	do \
		ln -fs "/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/${fn}" "/usr/local/Cellar/python/2.7.1/bin/${fn}" ;\
	done

I don't see how the -32 versions would be linked by this part of the Makefile:


	for fn in python pythonw idle pydoc python-config smtpd.py 2to3 \
		  python$(VERSION) pythonw$(VERSION) idle$(VERSION) \
		  pydoc$(VERSION) python$(VERSION)-config smtpd$(VERSION).py \
		  2to3-$(VERSION) ;\


Looking further at the logged output, the -32 versions appear to be extracted from a universal pythonw:


lipo -extract i386 -output /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/python2.7-32 pythonw
lipo -extract i386 -output /usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7-32 pythonw
ln -sf python2.7-32 "/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/python-32"
ln -sf pythonw2.7-32 "/usr/local/Cellar/python/2.7.1/Frameworks/Python.framework/Versions/2.7/bin/pythonw-32"

I don't see how the unixtools targets will find these.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11217>
_______________________________________


More information about the Python-bugs-list mailing list