-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Apparently even when running virtualenv --relocatable on my virtualenv, it's still not entirely relocatable:
- Links in
${VIRTUAL_ENV}/localare absolute instead of symbolic VIRTUAL_ENVenvironment variable defined inbin/activateis hard-coded
I'm thinking of fixing these myself, here's how I thought of doing it:
- Walk the virtualenv directory tree, make all absolute links to destinations inside the virtualenv relative (absolute links to paths outside of the virtualenv root will stay absolute)
- Replace hard-coded virtualenv path with bash magic (similar to this):
VIRTUAL_ENV="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"Any thoughts?
Omri.
sanyer and gjost
Metadata
Metadata
Assignees
Labels
No labels