From 65445f65e6080310d612f73083ba172eb2c6e326 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 27 Mar 2019 08:47:57 -0700 Subject: [PATCH] bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566) (cherry picked from commit 4a9a505d6f2474a570422dad89f8d1b344d6cd36) Co-authored-by: Steve Dower --- Lib/venv/__init__.py | 3 +++ .../2019-03-26-11-46-15.bpo-36441.lYjGF1.rst | 1 + Tools/msi/lib/lib_files.wxs | 15 +++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 Misc/NEWS.d/next/Windows/2019-03-26-11-46-15.bpo-36441.lYjGF1.rst diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 4fbd954f200..7836dfba04c 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -193,6 +193,9 @@ class EnvBuilder: src = os.path.join(os.path.dirname(src), basename + ext) else: src = srcfn + if not os.path.exists(src): + logger.warning('Unable to copy %r', src) + return shutil.copyfile(src, dst) diff --git a/Misc/NEWS.d/next/Windows/2019-03-26-11-46-15.bpo-36441.lYjGF1.rst b/Misc/NEWS.d/next/Windows/2019-03-26-11-46-15.bpo-36441.lYjGF1.rst new file mode 100644 index 00000000000..b27abff6209 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2019-03-26-11-46-15.bpo-36441.lYjGF1.rst @@ -0,0 +1 @@ +Fixes creating a venv when debug binaries are installed. diff --git a/Tools/msi/lib/lib_files.wxs b/Tools/msi/lib/lib_files.wxs index a9952bdac4d..251f9b1aeb8 100644 --- a/Tools/msi/lib/lib_files.wxs +++ b/Tools/msi/lib/lib_files.wxs @@ -69,6 +69,15 @@ + + + + + + + + + @@ -87,6 +96,12 @@ + + + + + +