Opened 17 years ago

Closed 14 years ago

#11705 closed defect (wontfix)

possible python24 distutils setup problem

Reported by: abarnert@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-pyobjc

Description

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 python24@2.4.3_1+darwin_8 and py-pyobjc@1.4_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

Change History (4)

comment:1 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:3 Changed 15 years ago by tobypeterson

Priority: HighNormal

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Port: py-pyobjc added
Resolution: wontfix
Status: newclosed

If there is a bug here it will go away when pyobjc 1.x goes away (hopefully soon).

Note: See TracTickets for help on using tickets.