mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Exclude badsyntax from compileall; adjust options to what Makefile.pre.in does.
Fixes #1049003.
This commit is contained in:
parent
645019068d
commit
7b2563bc80
1 changed files with 3 additions and 2 deletions
|
@ -352,6 +352,7 @@ def add_ui(db):
|
||||||
("VerdanaBold10", "Verdana", 10, None, 1),
|
("VerdanaBold10", "Verdana", 10, None, 1),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
compileargs = r"-Wi [TARGETDIR]Lib\compileall.py -f -x badsyntax [TARGETDIR]Lib"
|
||||||
# See "CustomAction Table"
|
# See "CustomAction Table"
|
||||||
add_data(db, "CustomAction", [
|
add_data(db, "CustomAction", [
|
||||||
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
|
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
|
||||||
|
@ -363,8 +364,8 @@ def add_ui(db):
|
||||||
("SetDLLDirToSystem32", 307, "DLLDIR", SystemFolderName),
|
("SetDLLDirToSystem32", 307, "DLLDIR", SystemFolderName),
|
||||||
# msidbCustomActionTypeExe + msidbCustomActionTypeSourceFile
|
# msidbCustomActionTypeExe + msidbCustomActionTypeSourceFile
|
||||||
# See "Custom Action Type 18"
|
# See "Custom Action Type 18"
|
||||||
("CompilePyc", 18, "python.exe", r"[TARGETDIR]Lib\compileall.py [TARGETDIR]Lib"),
|
("CompilePyc", 18, "python.exe", compileargs),
|
||||||
("CompilePyo", 18, "python.exe", r"-O [TARGETDIR]Lib\compileall.py [TARGETDIR]Lib")
|
("CompilePyo", 18, "python.exe", "-O "+compileargs),
|
||||||
])
|
])
|
||||||
|
|
||||||
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
|
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue