This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marco Sulla
Recipients Epic_Wink, Marco Sulla, brett.cannon, vinay.sajip
Date 2019-05-25.22:12:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558822335.37.0.545421622904.issue36964@roundup.psfhosted.org>
In-reply-to
Content
> if you have entry points installed then moving them to another 
> machine would break their shebang lines.

Not if you port it on the same OS using, for example

#!/usr/bin/env python3

> And even if you do it on your local machine there's no guarantee
> something else wasn't structured to be directory-specific.

You are telling about user code, not the virtualenv itself. If the user doe not write the code in such a way it's portable, it's his fault. But this should not stop people that do it right to try to port the venv if possible.

I think the modification
VIRTUAL_ENV="$(dirname "$(dirname "$(readlink -nf "$0")")")"

is very little and quite robust. Don't know how to do in fish and csh shells, but in bash and sh it works.
History
Date User Action Args
2019-05-25 22:12:15Marco Sullasetrecipients: + Marco Sulla, brett.cannon, vinay.sajip, Epic_Wink
2019-05-25 22:12:15Marco Sullasetmessageid: <1558822335.37.0.545421622904.issue36964@roundup.psfhosted.org>
2019-05-25 22:12:15Marco Sullalinkissue36964 messages
2019-05-25 22:12:15Marco Sullacreate