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.

Author tloredo
Recipients ned.deily, ronaldoussoren, tloredo
Date 2011-02-15.22:15:51
SpamBayes Score 0.00021985943
Marked as misclassified No
Message-id <1297808158.61.0.911536775601.issue11217@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-02-15 22:15:58tloredosetrecipients: + tloredo, ronaldoussoren, ned.deily
2011-02-15 22:15:58tloredosetmessageid: <1297808158.61.0.911536775601.issue11217@psf.upfronthosting.co.za>
2011-02-15 22:15:51tloredolinkissue11217 messages
2011-02-15 22:15:51tloredocreate