Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a2ea0e48
Commit
a2ea0e48
authored
Sep 22, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #25102: Windows installer does not precompile for -O or -OO.
parent
44fe401a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
5 deletions
+50
-5
Misc/NEWS
Misc/NEWS
+2
-0
Tools/msi/bundle/bundle.wxl
Tools/msi/bundle/bundle.wxl
+2
-0
Tools/msi/bundle/packagegroups/postinstall.wxs
Tools/msi/bundle/packagegroups/postinstall.wxs
+46
-5
No files found.
Misc/NEWS
View file @
a2ea0e48
...
@@ -150,6 +150,8 @@ Build
...
@@ -150,6 +150,8 @@ Build
Windows
Windows
-------
-------
-
Issue
#
25102
:
Windows
installer
does
not
precompile
for
-
O
or
-
OO
.
-
Issue
#
25081
:
Makes
Back
button
in
installer
go
back
to
upgrade
page
when
-
Issue
#
25081
:
Makes
Back
button
in
installer
go
back
to
upgrade
page
when
upgrading
.
upgrading
.
...
...
Tools/msi/bundle/bundle.wxl
View file @
a2ea0e48
...
@@ -2,4 +2,6 @@
...
@@ -2,4 +2,6 @@
<WixLocalization
Culture=
"en-us"
xmlns=
"http://schemas.microsoft.com/wix/2006/localization"
>
<WixLocalization
Culture=
"en-us"
xmlns=
"http://schemas.microsoft.com/wix/2006/localization"
>
<String
Id=
"CRTDescription"
>
C Runtime Update (KB2999226)
</String>
<String
Id=
"CRTDescription"
>
C Runtime Update (KB2999226)
</String>
<String
Id=
"CompileAllDescription"
>
Precompiling standard library
</String>
<String
Id=
"CompileAllDescription"
>
Precompiling standard library
</String>
<String
Id=
"CompileAllODescription"
>
Precompiling standard library (-O)
</String>
<String
Id=
"CompileAllOODescription"
>
Precompiling standard library (-OO)
</String>
</WixLocalization>
</WixLocalization>
Tools/msi/bundle/packagegroups/postinstall.wxs
View file @
a2ea0e48
...
@@ -40,23 +40,64 @@
...
@@ -40,23 +40,64 @@
<MsiProperty
Name=
"OPTIONALFEATURESREGISTRYKEY"
Value=
"[OptionalFeaturesRegistryKey]"
/>
<MsiProperty
Name=
"OPTIONALFEATURESREGISTRYKEY"
Value=
"[OptionalFeaturesRegistryKey]"
/>
</MsiPackage>
</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"
<ExePackage
Id=
"compileall_AllUsers"
SourceFile=
"py.exe"
SourceFile=
"py.exe"
Compressed=
"yes"
Compressed=
"yes"
DisplayName=
"!(loc.CompileAllDescription)"
DisplayName=
"!(loc.CompileAllDescription)"
InstallCommand=
'$(var.CompileAllCommand)'
InstallCommand=
'
-$(var.ShortVersion)$(var.Suffix32)
$(var.CompileAllCommand)'
RepairCommand=
'$(var.CompileAllCommand)'
RepairCommand=
'
-$(var.ShortVersion)$(var.Suffix32)
$(var.CompileAllCommand)'
Permanent=
"yes"
Permanent=
"yes"
PerMachine=
"yes"
PerMachine=
"yes"
Vital=
"no"
Vital=
"no"
InstallCondition=
"InstallAllUsers and CompileAll and not LauncherOnly"
/>
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"
<ExePackage
Id=
"compileall_JustForMe"
SourceFile=
"py.exe"
SourceFile=
"py.exe"
Compressed=
"yes"
Compressed=
"yes"
DisplayName=
"!(loc.CompileAllDescription)"
DisplayName=
"!(loc.CompileAllDescription)"
InstallCommand=
'$(var.CompileAllCommand)'
InstallCommand=
'-$(var.ShortVersion)$(var.Suffix32) $(var.CompileAllCommand)'
RepairCommand=
'$(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"
Permanent=
"yes"
PerMachine=
"no"
PerMachine=
"no"
Vital=
"no"
Vital=
"no"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment