Fix inclusion of siplib and sip.h in sdist with sip 6.6.2

Since these files are no longer tracked in git, they need to be
explicitly included in the sdist.

Fixes #2207.
This commit is contained in:
Scott Talbert
2022-07-09 11:00:10 -04:00
parent fd6b4814e4
commit 3a20dd4d70

View File

@@ -2157,10 +2157,16 @@ def cmd_sdist(options, args):
# copy Phoenix's generated code into the archive tree
msg('Copying generated files...')
for srcdir in ['cpp', 'gen']:
os.mkdir(posixjoin(PDEST, 'sip', 'siplib'))
for srcdir in ['cpp', 'gen', 'siplib']:
destdir = posixjoin(PDEST, 'sip', srcdir)
for name in glob.glob(posixjoin('sip', srcdir, '*')):
copyFile(name, destdir)
try:
copyFile(name, destdir)
except IsADirectoryError:
pass
sip_h_dir = posixjoin(cfg.PKGDIR, 'include', 'wxPython')
copyFile(posixjoin(sip_h_dir, 'sip.h'), posixjoin(PDEST, sip_h_dir))
for wc in ['*.py', '*.pi', '*.pyi']:
destdir = posixjoin(PDEST, cfg.PKGDIR)
for name in glob.glob(posixjoin(cfg.PKGDIR, wc)):