Skip to content

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