Ticket #11705 (closed defect: wontfix)
possible python24 distutils setup problem
|Reported by:||abarnert@…||Owned by:||macports-tickets@…|
I think there's a bug in the python24 port, although it may just be in py-pyobjc: The py-pyobjc port tries to install nibclassbuilder to /usr/local/bin instead of /opt/local/bin. Normally you wouldn't notice this (unless you had PyObjC installed under a non-MacPorts Python), but it's still broken.
If I create a ~/.pydistutils.cfg that sets install-scripts=/opt/local/bin and rebuild, it works properly. So, it looks like the python24 distutils is set up to use /usr/local as the prefix for scripts (and data? I haven't checked).
If we do need to use .pydistutils.cfg for some reason, MacPorts should use a non-standard name; that way, "python2.5 setup.py install" from a different Python wouldn't scribble all over the MacPorts install. But the python ports should install into /opt/local without requiring a .pydistutils.cfg at all.
To verify that it's something specific to this Python, I removed my .pydistutils.cfg, installed a stock Python 2.4 in /opt/py24, and ran the exact same steps as the py-pyobjc port, and it properly created /opt/py24/bin/nibclassbuilder.
Relevant port versions are email@example.com_1+darwin_8 and firstname.lastname@example.org_0.
uname -a: Darwin iMac.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386