]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38519: Internal include files missing on Windows (GH-16921)
authorZackery Spytz <zspytz@gmail.com>
Mon, 28 Oct 2019 17:03:27 +0000 (11:03 -0600)
committerSteve Dower <steve.dower@python.org>
Mon, 28 Oct 2019 17:03:27 +0000 (10:03 -0700)
Misc/NEWS.d/next/Windows/2019-10-28-05-01-29.bpo-38519.dCkY66.rst [new file with mode: 0644]
PC/layout/main.py

diff --git a/Misc/NEWS.d/next/Windows/2019-10-28-05-01-29.bpo-38519.dCkY66.rst b/Misc/NEWS.d/next/Windows/2019-10-28-05-01-29.bpo-38519.dCkY66.rst
new file mode 100644 (file)
index 0000000..56d8bb2
--- /dev/null
@@ -0,0 +1,2 @@
+Restores the internal C headers that were missing from the nuget.org and
+Microsoft Store packages.
index e59858196249af03de285e14055cec10296fc39f..3ca49d08e8f9817c9b20cceb090b42bfbb8d602e 100644 (file)
@@ -216,12 +216,7 @@ def get_layout(ns):
 
     if ns.include_dev:
 
-        def _c(d):
-            if d.is_dir():
-                return d.name != "internal"
-            return True
-
-        for dest, src in rglob(ns.source / "Include", "**/*.h", _c):
+        for dest, src in rglob(ns.source / "Include", "**/*.h"):
             yield "include/{}".format(dest), src
         src = ns.source / "PC" / "pyconfig.h"
         yield "include/pyconfig.h", src