[MacPorts] #36452: port select python version not updating all PATH's

MacPorts noreply at macports.org
Wed Oct 3 13:33:16 PDT 2012


#36452: port select python version not updating all PATH's
-------------------------+--------------------------------
 Reporter:  kbradwick@…  |      Owner:  macports-tickets@…
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.1.2
 Keywords:               |       Port:
-------------------------+--------------------------------
 When executing;

 sudo port select --set python python27

 or any other installed python version, not all paths are appended to the
 PATH environment variable. For example the command pip should map to
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pip-2.7.
 But the only way to execute the correct pip is to use pip-2.7 every time.
 This is a pain and could be avoided if the path
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin was
 appended to the PATH env on select.

 Other installed script (via pip) do not work because of this too, e.g.
 django-admin.py

-- 
Ticket URL: <https://trac.macports.org/ticket/36452>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list