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 Jeff.Edwards
Recipients Jeff.Edwards
Date 2020-01-27.20:58:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580158688.69.0.521881077968.issue39469@roundup.psfhosted.org>
In-reply-to
Content
Currently, the interpreter only supports absolute paths for the 'home' directory in the pyvenv.cfg file.  While this works when the interpreter is always installed at a fixed location, it impacts the portability of virtual environments and can make it notably more-difficult if multiple virtual environments are shipped with a shared interpreter and are intended to be portable and working in any directory.

Many of these issues can be solved for if 'home' can use a directory relative to the directory of the pyvenv.cfg file.  This is detected by the presence of a starting '.' in the value.

A common use-case for this is that a script-based tool (e.g. black or supervisor) may be shipped with a larger portable application where they are intended to share the same interpreter (to save on deployment size), but may have conflicting dependencies.  Since the application only depends on the executable scripts, those packages could be packaged into  their own virtual environments with their dependencies.
History
Date User Action Args
2020-01-27 20:58:08Jeff.Edwardssetrecipients: + Jeff.Edwards
2020-01-27 20:58:08Jeff.Edwardssetmessageid: <1580158688.69.0.521881077968.issue39469@roundup.psfhosted.org>
2020-01-27 20:58:08Jeff.Edwardslinkissue39469 messages
2020-01-27 20:58:08Jeff.Edwardscreate