Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
94487d45
Commit
94487d45
authored
Jul 20, 2018
by
Vinay Sajip
Committed by
GitHub
Jul 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34011: Update code copying DLLs and init.tcl into venvs. (GH-8253)
parent
cb5f3fdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Lib/venv/__init__.py
Lib/venv/__init__.py
+5
-1
Misc/NEWS.d/next/Windows/2018-07-11-15-58-06.bpo-34011.Ho_d5T.rst
...S.d/next/Windows/2018-07-11-15-58-06.bpo-34011.Ho_d5T.rst
+4
-0
No files found.
Lib/venv/__init__.py
View file @
94487d45
...
...
@@ -9,6 +9,7 @@ import os
import
shutil
import
subprocess
import
sys
import
sysconfig
import
types
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -207,7 +208,10 @@ class EnvBuilder:
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
)]
...
...
Misc/NEWS.d/next/Windows/2018-07-11-15-58-06.bpo-34011.Ho_d5T.rst
0 → 100644
View file @
94487d45
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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment