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.

classification
Title: venv does not work correctly when imported from .zip
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jussienko
Priority: normal Keywords:

Created on 2020-12-02 10:18 by jussienko, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg382301 - (view) Author: Jussi Enkovaara (jussienko) Date: 2020-12-02 10:18
In some cases it can be useful to provide standard library in a zip-file. 
However, when "venv" is imported from a zip-file, activate etc. scripts are not generated. The directory for script templates is determined in function setup_scripts in venv/__init__.py as

   path = os.path.abspath(os.path.dirname(__file__))
   path = os.path.join(path, 'scripts')

which becomes .../python38.zip/venv/scripts when is venv is imported from zip-file. No scripts are now generated, and no error / warning messages are invoked either.
History
Date User Action Args
2022-04-11 14:59:38adminsetgithub: 86700
2020-12-02 10:18:16jussienkocreate