Closed
Description
Apparently even when running virtualenv --relocatable
on my virtualenv, it's still not entirely relocatable:
- Links in
${VIRTUAL_ENV}/local
are absolute instead of symbolic VIRTUAL_ENV
environment variable defined inbin/activate
is 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.
Metadata
Metadata
Assignees
Labels
No labels