[MacPorts] #36178: Add port select support for pip and virtualenv
#36178: Add port select support for pip and virtualenv -------------------------------------+----------------------------------- Reporter: Deil.Christoph@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: select, pip, virtualenv | Port: py-pip, py-virtualenv -------------------------------------+----------------------------------- Would it be possible to implement the possibility to select a default pip and virtualenv? E.g. sudo port select --set pip py27-pip sudo port select --set virtualenv py27-virtualenv Just like for python, ipython, cython or nosetests this would be very useful. pip and virtualenv are quite frequently used e.g. in shell scripts written by others to install software and if only pip-2.7 is on the PATH they fail. I would prefer setting the default version via Macports than via symlinks or aliases. -- Ticket URL: <https://trac.macports.org/ticket/36178> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | ------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => akitada@… -- Ticket URL: <https://trac.macports.org/ticket/36178#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | ------------------------------------+------------------------------------- Description changed by ryandesign@…: Old description:
Would it be possible to implement the possibility to select a default pip and virtualenv? E.g. sudo port select --set pip py27-pip sudo port select --set virtualenv py27-virtualenv
Just like for python, ipython, cython or nosetests this would be very useful. pip and virtualenv are quite frequently used e.g. in shell scripts written by others to install software and if only pip-2.7 is on the PATH they fail. I would prefer setting the default version via Macports than via symlinks or aliases.
New description: Would it be possible to implement the possibility to select a default pip and virtualenv? E.g. {{{ sudo port select --set pip py27-pip sudo port select --set virtualenv py27-virtualenv }}} Just like for python, ipython, cython or nosetests this would be very useful. pip and virtualenv are quite frequently used e.g. in shell scripts written by others to install software and if only pip-2.7 is on the PATH they fail. I would prefer setting the default version via Macports than via symlinks or aliases. -- -- Ticket URL: <https://trac.macports.org/ticket/36178#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 phildobbin@…): I too would like to add my support for this feature. I've just installed `virtualenv_select` under the impression it would fulfil this function but every which way I attempt to use it I get: `Selecting 'virtualenv-2.7' for 'virtualenv' failed: The specified version 'virtualenv-2.7' is not valid` -- Ticket URL: <https://trac.macports.org/ticket/36178#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 Peter.Danecek@…): I'd say both select ports were implemented. So this ticket is a leftover and should be closed! {{{ petr% port search pip_select pip_select @0.1 (python) common files for selecting default pip version petr% port search virtualenv_select virtualenv_select @0.1 (python) common files for selecting default virtualenv version }}} -- Ticket URL: <https://trac.macports.org/ticket/36178#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#36178: Add port select support for pip and virtualenv -------------------------------------------+----------------------- Reporter: Deil.Christoph@… | Owner: akitada@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: pip_select virtualenv_select | -------------------------------------------+----------------------- Changes (by macsforever2000@…): * status: new => closed * keywords: select, pip, virtualenv => * version: 2.1.2 => * resolution: => fixed * port: py-pip, py-virtualenv => pip_select virtualenv_select Comment: pip_select was added in r115843 - see also #38016. virtualenv_select was added in r97885. -- Ticket URL: <https://trac.macports.org/ticket/36178#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts