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 brett.cannon
Recipients brett.cannon, vinay.sajip
Date 2020-06-17.21:25:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592429138.01.0.105154043549.issue41011@roundup.psfhosted.org>
In-reply-to
Content
When a virtual environment is created, the resulting pyvenv.cfg specifies the directory which contained the Python executable and the version of Python (see https://github.com/python/cpython/blob/master/Lib/venv/__init__.py#L147). Unfortunately that may not be enough to work backwards to which binary was used to create the virtual environment.

My idea is to add an `executable` and `command` key to pyvenv.cfg which record the Python executable name and the command used to construct the virtual environment, respectively. The former would disambiguate which exact Python interpreter was used, and the `command` key could be used by e.g. virtualenv to record what was used to construct the virtual environment. That potentially could be used to make recreating a broken virtual environment easier.
History
Date User Action Args
2020-06-17 21:25:38brett.cannonsetrecipients: + brett.cannon, vinay.sajip
2020-06-17 21:25:38brett.cannonsetmessageid: <1592429138.01.0.105154043549.issue41011@roundup.psfhosted.org>
2020-06-17 21:25:37brett.cannonlinkissue41011 messages
2020-06-17 21:25:37brett.cannoncreate