[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

Tzu-ping Chung report at bugs.python.org
Thu Nov 28 10:11:55 EST 2019


Tzu-ping Chung <uranusjr at gmail.com> added the comment:

There are more differences than Scripts/bin, like Windows use Lib but POSIX uses lib/pythonX.Y. IMO it’s probably better to stick with platform conventions, especially since those can be discovered with sysconfig.get_paths(expand=False).

I wonder whether it’d be a good idea to record what scheme was used to create the venv (in pyvenv.cfg). Any Python runtime can use that value in get_paths(scheme=..., expand=False) to know about the venv’s structure, even if the venv was created on another platform. This would be particularly useful to e.g. inspect a Windows-native venv in a WSL Python.

----------
nosy: +uranusjr

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35003>
_______________________________________


More information about the Python-bugs-list mailing list