mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Minor fixes to Windows build scripts
This commit is contained in:
parent
3c28c6e4fb
commit
777af30645
2 changed files with 14 additions and 4 deletions
|
@ -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'}:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue