Commits

Martin von Löwis committed feb4017

Exclude badsyntax from compileall; adjust options to what Makefile.pre.in does.
Fixes #1049003.

  • Participants
  • Parent commits c308c6b
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Tools/msi/msi.py

               ("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
         ("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"