Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a richer variety of virtualenv directories #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

samv
Copy link

@samv samv commented May 6, 2014

As mentioned in #2.

samv added 2 commits May 6, 2014 15:20
If a python interpreter is specified to virtualenv using, eg
--python=python2.7, then this script ends up not rewriting the #! lines.
Instead of a suffix match, check that they end with something that exists
in the bin directory, and if so update them to point to that same thing in
the new path.
PyPy uses a slightly different virtualenv layout; instead of lib/python2.7
you'll see lib-python/2.7; adapt accordingly.  Also its bin/python ends up
being a symlink.  Finally, there is a bin/__pycache__ directory which needs
skipping in update_script().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant