bpo-38519: Internal include files missing on Windows (GH-16921)

This commit is contained in:
Zackery Spytz 2019-10-28 11:03:27 -06:00 committed by Steve Dower
parent e471e72977
commit edb172a872
2 changed files with 3 additions and 6 deletions

View File

@ -0,0 +1,2 @@
Restores the internal C headers that were missing from the nuget.org and
Microsoft Store packages.

View 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