diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-09-22 23:45:19 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-09-22 23:45:19 (GMT) |
commit | a2ea0e4804f30cdc754b1ed6a37fff30fd8a5378 (patch) | |
tree | 8ae1012924624f2f5b6cc55ae9fe4093e5a46a37 /Tools/msi/bundle/packagegroups | |
parent | 44fe401aa3afbb1173c1ca5aff18fc6c2efe8238 (diff) | |
download | cpython-a2ea0e4804f30cdc754b1ed6a37fff30fd8a5378.zip cpython-a2ea0e4804f30cdc754b1ed6a37fff30fd8a5378.tar.gz cpython-a2ea0e4804f30cdc754b1ed6a37fff30fd8a5378.tar.bz2 |
Issue #25102: Windows installer does not precompile for -O or -OO.
Diffstat (limited to 'Tools/msi/bundle/packagegroups')
-rw-r--r-- | Tools/msi/bundle/packagegroups/postinstall.wxs | 51 |
1 files changed, 46 insertions, 5 deletions
diff --git a/Tools/msi/bundle/packagegroups/postinstall.wxs b/Tools/msi/bundle/packagegroups/postinstall.wxs index 7b0f3fc..b40c2a5 100644 --- a/Tools/msi/bundle/packagegroups/postinstall.wxs +++ b/Tools/msi/bundle/packagegroups/postinstall.wxs @@ -40,23 +40,64 @@ <MsiProperty Name="OPTIONALFEATURESREGISTRYKEY" Value="[OptionalFeaturesRegistryKey]" /> </MsiPackage> - <?define CompileAllCommand=-$(var.ShortVersion)$(var.Suffix32) -E -s -Wi "[TargetDir]\Lib\compileall.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TargetDir]\Lib"?> + <?define CompileAllCommand=-E -s -Wi "[TargetDir]\Lib\compileall.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TargetDir]\Lib"?> <ExePackage Id="compileall_AllUsers" SourceFile="py.exe" Compressed="yes" DisplayName="!(loc.CompileAllDescription)" - InstallCommand='$(var.CompileAllCommand)' - RepairCommand='$(var.CompileAllCommand)' + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' Permanent="yes" PerMachine="yes" Vital="no" InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" /> + <ExePackage Id="compileallO_AllUsers" + SourceFile="py.exe" + Compressed="yes" + DisplayName="!(loc.CompileAllODescription)" + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' + Permanent="yes" + PerMachine="yes" + Vital="no" + InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" /> + <ExePackage Id="compileallOO_AllUsers" + SourceFile="py.exe" + Compressed="yes" + DisplayName="!(loc.CompileAllOODescription)" + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' + Permanent="yes" + PerMachine="yes" + Vital="no" + InstallCondition="InstallAllUsers and CompileAll and not LauncherOnly" /> + <ExePackage Id="compileall_JustForMe" SourceFile="py.exe" Compressed="yes" DisplayName="!(loc.CompileAllDescription)" - InstallCommand='$(var.CompileAllCommand)' - RepairCommand='$(var.CompileAllCommand)' + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)' + Permanent="yes" + PerMachine="no" + Vital="no" + InstallCondition="not InstallAllUsers and CompileAll and not LauncherOnly" /> + <ExePackage Id="compileallO_JustForMe" + SourceFile="py.exe" + Compressed="yes" + DisplayName="!(loc.CompileAllODescription)" + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -O $(var.CompileAllCommand)' + Permanent="yes" + PerMachine="no" + Vital="no" + InstallCondition="not InstallAllUsers and CompileAll and not LauncherOnly" /> + <ExePackage Id="compileallOO_JustForMe" + SourceFile="py.exe" + Compressed="yes" + DisplayName="!(loc.CompileAllOODescription)" + InstallCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' + RepairCommand='-$(var.ShortVersion)$(var.Suffix32) -OO $(var.CompileAllCommand)' Permanent="yes" PerMachine="no" Vital="no" |