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.

Title: EnvBuilder.install_scripts should use explicit permissions
Type: behavior Stage:
Components: Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7, Python 3.6, Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Frederik Rietdijk, jherland
Priority: normal Keywords:

Created on 2020-10-02 18:57 by Frederik Rietdijk, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg377828 - (view) Author: Frederik Rietdijk (Frederik Rietdijk) Date: 2020-10-02 18:57
Creating a venv with `python3 -m venv foo` and then reinitializing it with `python3 -m venv foo` fails with a `Error: [Errno 13] Permission denied: '/path/to/cwd/foo/bin/'` with the CPython interpreters from Nixpkgs.

The method `EnvBuilder.install_scripts` that is responsible for copying the files, copies the permissions, instead of explicitly stating what permissions are needed. This fails with the Nixpkgs builds of CPython because in Nixpkgs the entire store is made read-only.

Files that need to be copied from the installation during run-time should be explicit about the permissions they require, instead of depending on their current permissions.
msg377829 - (view) Author: Frederik Rietdijk (Frederik Rietdijk) Date: 2020-10-02 18:58
Nixpkgs issue
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86079
2020-10-03 01:10:11jherlandsetnosy: + jherland
2020-10-02 18:58:45Frederik Rietdijksetmessages: + msg377829
2020-10-02 18:57:46Frederik Rietdijkcreate