[New-bugs-announce] [issue41913] EnvBuilder.install_scripts should use explicit permissions

Frederik Rietdijk report at bugs.python.org
Fri Oct 2 14:57:46 EDT 2020


New submission from Frederik Rietdijk <fridh at fridh.nl>:

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/activate.fish'` 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.

----------
messages: 377828
nosy: Frederik Rietdijk
priority: normal
severity: normal
status: open
title: EnvBuilder.install_scripts should use explicit permissions
type: behavior
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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


More information about the New-bugs-announce mailing list