[MacPorts] #36178: Add port select support for pip and virtualenv

MacPorts noreply at macports.org
Thu Sep 20 07:17:14 PDT 2012


#36178: Add port select support for pip and virtualenv
------------------------------------+-------------------------------------
  Reporter:  Deil.Christoph@…       |      Owner:  akitada@…
      Type:  request                |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:  2.1.2
Resolution:                         |   Keywords:  select, pip, virtualenv
      Port:  py-pip, py-virtualenv  |
------------------------------------+-------------------------------------

Comment (by Deil.Christoph@…):

 Ah, apparently a virtualenv_select port was added. Great!

 The trick is to select "virtualenv27", not "virtualenv-2.7", which you can
 find out with "port select --list virtualenv".

 The only weird thing is that Macports installs
 /opt/local/bin/virtualenv-2.7-2.7, is that on purpose?
 I've never used or needed it!?

 {{{
 $ ls -lh /opt/local/bin/virtualenv*
 lrwxr-xr-x  1 root  admin    74B Sep 19 16:51
 /opt/local/bin/virtualenv-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv
 lrwxr-xr-x  1 root  admin    78B Sep 19 16:51
 /opt/local/bin/virtualenv-2.7-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv-2.7
 lrwxr-xr-x  1 root  admin    84B Sep 12 11:13
 /opt/local/bin/virtualenvwrapper.sh-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh

 $ port select --list virtualenv
 Available versions for virtualenv:
         none (active)
         virtualenv27

 $ sudo port select virtualenv virtualenv27
 Selecting 'virtualenv27' for 'virtualenv' succeeded. 'virtualenv27' is now
 active.


 $ ls -lh /opt/local/bin/virtualenv*
 lrwxr-xr-x  1 root  admin    29B Sep 20 16:12 /opt/local/bin/virtualenv ->
 /opt/local/bin/virtualenv-2.7
 lrwxr-xr-x  1 root  admin    74B Sep 19 16:51
 /opt/local/bin/virtualenv-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv
 lrwxr-xr-x  1 root  admin    78B Sep 19 16:51
 /opt/local/bin/virtualenv-2.7-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv-2.7
 lrwxr-xr-x  1 root  admin    84B Sep 12 11:13
 /opt/local/bin/virtualenvwrapper.sh-2.7 ->
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
 }}}

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


More information about the macports-tickets mailing list