What has MacPorts Installed for py27-iPython?

Ned Deily nad at acm.org
Sat Jul 7 13:17:06 PDT 2012


In article <20120707183738.GB6457 at macmini.kode5.net>,
 Jamie Paul Griffin <jimpaulgriffin at gmail.com> wrote:
> On Sat, Jul 07, 2012 at 10:19:28AM -0400, Arno Hautala wrote:
> > On Sat, Jul 7, 2012 at 9:57 AM, Jamie Paul Griffin
> > <jimpaulgriffin at gmail.com> wrote:
> > >
> > > I experienced a similar issue when I installed pyzor (not from Macports
> > > but build manually using the Macports installed python2.7) and the
> > > binary pyzord was installed in:
> > >
> > >     /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pyzord
> > >
> > > You can just use a symlink to the binary into a directory in your path;
> > > /opt/local/bin for example.
> > 
> > It's probably not a good idea to put anything in /opt/local/bin
> > If you link it as bin/pyzord, for example, and that port later starts
> > linking into bin on it's own, you'll receive an activation error, and
> > you'll most likely have forgotten that you linked it yourself and not
> > understand the error. (apologies for any assumptions about your
> > technical memory skills)
> > 
> > It might be better to link into ~/local/bin or somewhere else that's
> > completely under your control.
> 
> It wasn't a port though, I built pyzor from source only I used the port
> built python2.7 to build it so I can't forsee any issues there but it's a 
> good point
> to remember none the less. Maybe i'm wrong, though?

Another solution is to add the framework bin directory to your PATH:

    export PATH=\
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH

or, possibly, to use the default MacPorts python:

    export PATH=\
/opt/local/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH

-- 
 Ned Deily,
 nad at acm.org



More information about the macports-users mailing list