Opened 11 years ago
Last modified 10 years ago
#43638 new defect
py27-virtualenvwrapper: Does not use virtualenv with appropriate suffix
Reported by: | Tatsh (Andrew Udvare) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), nerdling (Jeremy Lavergne), neverpanic (Clemens Lang), pixilla (Bradley Giesbrecht), petrrr | |
Port: | py-virtualenvwrapper |
Description
virtualenvwrapper.sh-2.7
is installed and can be sourced but it does not seem to want to use virtualenv-2.7
but instead wants to use virtualenv
(no suffix). Maybe this is hard-coded.
It may be unnecessary to suffix virtualenvwrapper.sh
with a version for these reasons:
- It is inconsistent to not have
mkvirtualenv-2.7
,rmvirtualenv-2.7
as commands virtualenvwrapper
is made for all relevant versions of Python (although I have no idea if it is a separate package per version, especially 2 vs 3)mkvirtualenv
accepts a-p
argument for the path of which Python implementation to use:mkvirtualenv -p /usr/bin/python some-name
(if you really wanted to)- If
virtualenvwrapper.sh
is not suffixed, it means shell configurations (bashrc) that are made to be compatible with many OS's do not need a special clause for the MacPorts version
The 'fix' to virtualenvwrapper.sh-2.7
's mkvirtualenv
is to use symlinks to virtualenv and relevant applications like pip. I have a script attached that creates such symlinks assuming that the version desired is 2.7. I am currently running it every so often with launchd or manually.
Attachments (1)
Change History (7)
Changed 11 years ago by Tatsh (Andrew Udvare)
Attachment: | update-27-symlinks added |
---|
comment:1 Changed 11 years ago by Tatsh (Andrew Udvare)
Cc: | audvare@… added |
---|
comment:2 Changed 11 years ago by nerdling (Jeremy Lavergne)
Cc: | ryandesign@… snc@… akitada@… cal@… added; audvare@… removed |
---|
comment:4 Changed 10 years ago by mf2k (Frank Schima)
Keywords: | virtualenv virtualenvwrapper removed |
---|---|
Port: | py-virtualenvwrapper added |
comment:5 Changed 10 years ago by mf2k (Frank Schima)
Cc: | akitada@… removed |
---|
Removing former maintainer from Cc. See #43692.
Note: See
TracTickets for help on using
tickets.
Cc Me!