[Python-checkins] bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)

Miss Islington (bot) webhook-mailer at python.org
Fri Apr 17 19:31:36 EDT 2020


https://github.com/python/cpython/commit/c46dc6f72b4b23a33e66f196f174602d520716df
commit: c46dc6f72b4b23a33e66f196f174602d520716df
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-04-17T16:31:28-07:00
summary:

bpo-38492: Remove pythonw.exe dependency on the Microsoft C++ runtime (GH-16824)

(cherry picked from commit 7aebbd1182bc818324656b2fb764679faf51fdff)

Co-authored-by: Steve Dower <steve.dower at python.org>

files:
A Misc/NEWS.d/next/Windows/2019-10-16-09-49-09.bpo-38492.Te1LxC.rst
M PCbuild/pythonw_uwp.vcxproj

diff --git a/Misc/NEWS.d/next/Windows/2019-10-16-09-49-09.bpo-38492.Te1LxC.rst b/Misc/NEWS.d/next/Windows/2019-10-16-09-49-09.bpo-38492.Te1LxC.rst
new file mode 100644
index 0000000000000..41fe695413f97
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2019-10-16-09-49-09.bpo-38492.Te1LxC.rst
@@ -0,0 +1 @@
+Remove ``pythonw.exe`` dependency on the Microsoft C++ runtime.
diff --git a/PCbuild/pythonw_uwp.vcxproj b/PCbuild/pythonw_uwp.vcxproj
index 3da05e351d483..6ff6abb57161b 100644
--- a/PCbuild/pythonw_uwp.vcxproj
+++ b/PCbuild/pythonw_uwp.vcxproj
@@ -66,6 +66,15 @@
       <SubSystem>Windows</SubSystem>
     </Link>
   </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="$(Configuration) != 'Debug'">
+    <ClCompile>
+      <RuntimeLibrary>Multithreaded</RuntimeLibrary>
+    </ClCompile>
+    <Link>
+      <AdditionalDependencies>ucrt.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <IgnoreSpecificDefaultLibraries>libucrt;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
+    </Link>
+  </ItemDefinitionGroup>
   <ItemGroup>
     <None Include="..\PC\pyconw.ico" />
   </ItemGroup>



More information about the Python-checkins mailing list