Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84815 - python distutils binary install path not in default search path
Summary: python distutils binary install path not in default search path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-10 20:30 UTC by dan
Modified: 2007-12-08 21:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2005-03-10 20:30:21 UTC
The default OSX python distutils package installs executable files in
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/
This path is not in the user's default search path, so when a python package with executable scripts is installed, those scripts are not immediately available for use.
A few workarounds:
i) Add the above path to $PATH in ~/.profile (or /etc/make.profile/profile.bashrc)
ii) Install symbolic links for each executible file into /usr/bin when each package gets installed (or specify /usr/bin as the script install dir at install time)
iii) Edit the global or home pydistutils.cfg files so that scripts get installed into /usr/bin
iv) Edit the documentation to inform users that they need to edit ~/.pydistutils.cfg

I guess iv) would take the least effort, and is the most non-invasive option. But it may be useful to install/edit the pydistutils.cfg file automagically through the macos profile...

Of course, this may be all be solved when pathspec arrives and OSX users can install a gentoo-provided python.

Reproducible: Always
Steps to Reproduce:
Comment 1 dan 2005-05-10 23:34:35 UTC
Bug 92216 - http://bugs.gentoo.org/show_bug.cgi?id=92216
Has the solution to this problem by patching distutils.eclass
Comment 2 Elias Pipping (RETIRED) gentoo-dev 2007-12-08 21:44:10 UTC
Please use prefix, where we use our own python on OSX