From: Steve Dower Date: Wed, 27 Mar 2019 15:14:53 +0000 (-0700) Subject: bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566) X-Git-Tag: v3.8.0a4~319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a9a505d6f2474a570422dad89f8d1b344d6cd36;p=python bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566) --- 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 @@ + + + + + +