bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)



https://bugs.python.org/issue35596
diff --git a/Misc/NEWS.d/next/Windows/2018-12-28-07-25-47.bpo-35596.P9CEY2.rst b/Misc/NEWS.d/next/Windows/2018-12-28-07-25-47.bpo-35596.P9CEY2.rst
new file mode 100644
index 0000000..3ce90f6
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2018-12-28-07-25-47.bpo-35596.P9CEY2.rst
@@ -0,0 +1 @@
+Fix vcruntime140.dll being added to embeddable distro multiple times.
diff --git a/PC/layout/main.py b/PC/layout/main.py
index 217b2b0..7eaf201 100644
--- a/PC/layout/main.py
+++ b/PC/layout/main.py
@@ -46,7 +46,7 @@
 
 VENV_DIRS_ONLY = FileNameSet("venv", "ensurepip")
 
-EXCLUDE_FROM_PYDS = FileStemSet("python*", "pyshellext")
+EXCLUDE_FROM_PYDS = FileStemSet("python*", "pyshellext", "vcruntime*")
 EXCLUDE_FROM_LIB = FileNameSet("*.pyc", "__pycache__", "*.pickle")
 EXCLUDE_FROM_PACKAGED_LIB = FileNameSet("readme.txt")
 EXCLUDE_FROM_COMPILE = FileNameSet("badsyntax_*", "bad_*")