mirror of https://github.com/python/cpython
Minor fixes to Windows build scripts
This commit is contained in:
parent
3c28c6e4fb
commit
777af30645
|
@ -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'}:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@setlocal
|
||||
@setlocal enableextensions
|
||||
@echo off
|
||||
|
||||
set D=%~dp0
|
||||
|
@ -51,6 +51,9 @@ exit /B 0
|
|||
|
||||
@if not exist "%~1" exit /B 1
|
||||
|
||||
@set EXE=%~1
|
||||
@if not "%EXE:embed=%"=="%EXE%" exit /B 0
|
||||
|
||||
@set EXITCODE=0
|
||||
@echo Installing %1 into %2
|
||||
"%~1" /passive /log "%~2\install\log.txt" TargetDir="%~2\Python" Include_debug=1 Include_symbols=1 %~3
|
||||
|
|
Loading…
Reference in New Issue