[Distutils] question re: easy_install and macports
Ned Deily
nad at acm.org
Thu Oct 27 22:23:36 CEST 2011
In article
<CAOTb1wf9JpwBTxqwmF8GHMC1v3vmHmkDeO7REjeOysnxy_p7-g at mail.gmail.com>,
Chris Jerdonek <chris.jerdonek at gmail.com> wrote:
> Hi, I have a quick question regarding easy_install and MacPorts. I
> tried easy_installing nose while using MacPorts (Python 2.6.7 /
> py26-distribute @0.6.24_0 / MacPorts version 2.0.3) --
>
> > sudo python -m easy_install nose
>
> This worked, except it installed the nosetests script into--
>
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin
>
> but did not create an alias in--
>
> /opt/local/bin
>
> So nosetests is not automatically in the path. Was this a problem
> with MacPorts, easy_install, or nose? Whose responsibility was it to
> create the alias?
For Mac OS X Python framework builds, the easiest general solution is to
add the framework bin directory to your shell PATH. The python.org
installers do that by default. For a Macports Python, you can add
something like:
export
PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:$PAT
H
to the appropriate shell initialization profile, like .bash_profile.
--
Ned Deily,
nad at acm.org
More information about the Distutils-SIG
mailing list