From 4a9a505d6f2474a570422dad89f8d1b344d6cd36 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 27 Mar 2019 08:14:53 -0700 Subject: [PATCH] bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566) --- 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 5e6d375e95..4a49b240b8 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -195,6 +195,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 0000000000..b27abff620 --- /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 a9952bdac4..251f9b1aeb 100644 --- a/Tools/msi/lib/lib_files.wxs +++ b/Tools/msi/lib/lib_files.wxs @@ -69,6 +69,15 @@ + + + + + + + + + @@ -87,6 +96,12 @@ + + + + + + -- 2.40.0