Minor fixes to Windows build scripts

This commit is contained in:
Steve Dower 2015-04-19 19:50:35 -07:00
parent 3c28c6e4fb
commit 777af30645
2 changed files with 14 additions and 4 deletions

View file

@ -30,9 +30,16 @@ def include_in_lib(p):
return False
return True
if name in {'_ctypes_test.pyd', '_testbuffer.pyd', '_testcapi.pyd', '_testimportmultiple.pyd', 'xxlimited.pyd'}:
return False
return p.suffix.lower() not in {'.pyc', '.pyo'}
suffix = p.suffix.lower()
if suffix == '.pyd':
return name not in {
'_ctypes_test.pyd',
'_testbuffer.pyd',
'_testcapi.pyd',
'_testimportmultiple.pyd',
'xxlimited.pyd',
}
return suffix not in {'.pyc', '.pyo'}
def include_in_tools(p):
if p.is_dir() and p.name.lower() in {'scripts', 'i18n', 'pynche', 'demo', 'parser'}: