Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Lib/venv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import shutil
import subprocess
import sys
import sysconfig
import types

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -207,7 +208,10 @@ def setup_python(self, context):
copier(context.env_exe, path, relative_symlinks_ok=True)
if not os.path.islink(path):
os.chmod(path, 0o755)
else:
elif sysconfig.is_python_build(True):
# See bpo-34011. This copying code should only be needed when a
# venv is created from a source Python build (i.e. not an installed
# Python)
subdir = 'DLLs'
include = self.include_binary
files = [f for f in os.listdir(dirname) if include(f)]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A suite of code has been changed which copied across DLLs and init.tcl from
the running Python location into a venv being created. These copies are needed
only when running from a Python source build, and the copying code is now only
run when that is the case, rather than whenever a venv is created.