New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #11705 (closed defect: wontfix)

Opened 6 years ago

Last modified 4 years ago

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

comment:1 Changed 6 years ago by pipping@…

  • Milestone set to Port Bugs

comment:2 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:3 Changed 4 years ago by toby@…

  • Priority changed from High to Normal

comment:4 Changed 4 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to wontfix
  • Port set to py-pyobjc

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.