mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
4fa69858d9
Previously these ended up without u+w permissions which meant they could not be regenerated, which was hugely annoying when these venvs were for example created and recreated in a nix-shell.
14 lines
475 B
Diff
14 lines
475 B
Diff
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
|
|
index caa7285..ad666ac 100644
|
|
--- a/Lib/venv/__init__.py
|
|
+++ b/Lib/venv/__init__.py
|
|
@@ -379,7 +379,7 @@ class EnvBuilder:
|
|
if data is not None:
|
|
with open(dstfile, 'wb') as f:
|
|
f.write(data)
|
|
- shutil.copymode(srcfile, dstfile)
|
|
+ os.chmod(dstfile, 0o644)
|
|
|
|
|
|
def create(env_dir, system_site_packages=False, clear=False,
|