summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-11-02 22:59:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-11-02 22:59:56 (GMT)
commit7b2563bc802c00b13b4411b020b501763efebf23 (patch)
tree985bd871eeed68f97aa4a96c51f73bfd71b80a28 /Tools
parent645019068da25b1e88154bbdec93f29e3e05e830 (diff)
downloadcpython-7b2563bc802c00b13b4411b020b501763efebf23.zip
cpython-7b2563bc802c00b13b4411b020b501763efebf23.tar.gz
cpython-7b2563bc802c00b13b4411b020b501763efebf23.tar.bz2
Exclude badsyntax from compileall; adjust options to what Makefile.pre.in does.
Fixes #1049003.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/msi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py
index cda7bb6..35f2c4a 100644
--- a/Tools/msi/msi.py
+++ b/Tools/msi/msi.py
@@ -352,6 +352,7 @@ def add_ui(db):
("VerdanaBold10", "Verdana", 10, None, 1),
])
+ compileargs = r"-Wi [TARGETDIR]Lib\compileall.py -f -x badsyntax [TARGETDIR]Lib"
# See "CustomAction Table"
add_data(db, "CustomAction", [
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
@@ -363,8 +364,8 @@ def add_ui(db):
("SetDLLDirToSystem32", 307, "DLLDIR", SystemFolderName),
# msidbCustomActionTypeExe + msidbCustomActionTypeSourceFile
# See "Custom Action Type 18"
- ("CompilePyc", 18, "python.exe", r"[TARGETDIR]Lib\compileall.py [TARGETDIR]Lib"),
- ("CompilePyo", 18, "python.exe", r"-O [TARGETDIR]Lib\compileall.py [TARGETDIR]Lib")
+ ("CompilePyc", 18, "python.exe", compileargs),
+ ("CompilePyo", 18, "python.exe", "-O "+compileargs),
])
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"