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
c70d4f4d
Commit
c70d4f4d
authored
Jan 02, 2014
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19728: Enable pip installation by default on Windows.
parent
009771ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
Misc/NEWS
Misc/NEWS
+2
-0
Tools/msi/msi.py
Tools/msi/msi.py
+13
-8
No files found.
Misc/NEWS
View file @
c70d4f4d
...
@@ -303,6 +303,8 @@ Tests
...
@@ -303,6 +303,8 @@ Tests
Build
Build
-----
-----
- Issue #19728: Enable pip installation by default on Windows.
- Issue #16136: Remove VMS support
- Issue #16136: Remove VMS support
- Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
- Issue #18215: Add script Tools/ssl/test_multiple_versions.py to compile and
...
...
Tools/msi/msi.py
View file @
c70d4f4d
...
@@ -422,7 +422,7 @@ def add_ui(db):
...
@@ -422,7 +422,7 @@ def add_ui(db):
compileargs
=
r'-Wi "[TARGETDIR]Lib\
compile
all.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TARGETDIR]Lib"'
compileargs
=
r'-Wi "[TARGETDIR]Lib\
compile
all.py" -f -x "bad_coding|badsyntax|site-packages|py2_|lib2to3\\tests|venv\\scripts" "[TARGETDIR]Lib"'
lib2to3args
=
r'-c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"'
lib2to3args
=
r'-c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"'
updatepipargs
=
r'-m ensurepip -U'
updatepipargs
=
r'-m ensurepip -U'
removepipargs
=
r'-m ensurepip
-r'
# does not yet work
removepipargs
=
r'-m ensurepip
._uninstall'
# See "CustomAction Table"
# See "CustomAction Table"
add_data
(
db
,
"CustomAction"
,
[
add_data
(
db
,
"CustomAction"
,
[
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
# msidbCustomActionTypeFirstSequence + msidbCustomActionTypeTextData + msidbCustomActionTypeProperty
...
@@ -441,7 +441,7 @@ def add_ui(db):
...
@@ -441,7 +441,7 @@ def add_ui(db):
(
"CompileGrammar"
,
18
,
"python.exe"
,
lib2to3args
),
(
"CompileGrammar"
,
18
,
"python.exe"
,
lib2to3args
),
# msidbCustomActionTypeInScript (1024); run during actual installation
# msidbCustomActionTypeInScript (1024); run during actual installation
(
"UpdatePip"
,
18
+
1024
,
"python.exe"
,
updatepipargs
),
(
"UpdatePip"
,
18
+
1024
,
"python.exe"
,
updatepipargs
),
#
("RemovePip", 18, "python.exe", removepipargs),
(
"RemovePip"
,
18
,
"python.exe"
,
removepipargs
),
])
])
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
...
@@ -480,10 +480,10 @@ def add_ui(db):
...
@@ -480,10 +480,10 @@ def add_ui(db):
(
"UpdateEditIDLE"
,
None
,
1050
),
(
"UpdateEditIDLE"
,
None
,
1050
),
# run command if install state of pip changes to INSTALLSTATE_LOCAL
# run command if install state of pip changes to INSTALLSTATE_LOCAL
# run after InstallFiles
# run after InstallFiles
(
"UpdatePip"
,
"&pip=3"
,
4001
),
(
"UpdatePip"
,
"&pip
_feature
=3"
,
4001
),
# remove pip when state changes to INSTALLSTATE_ABSENT
# remove pip when state changes to INSTALLSTATE_ABSENT
# run before RemoveFiles
# run before RemoveFiles
#("RemovePip", "&pip
=2", 3499),
(
"RemovePip"
,
"&pip_feature
=2"
,
3499
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
...
@@ -862,7 +862,7 @@ def add_features(db):
...
@@ -862,7 +862,7 @@ def add_features(db):
# Features that have no advertisement trigger (e.g. the test suite)
# Features that have no advertisement trigger (e.g. the test suite)
# must not support advertisement
# must not support advertisement
global
default_feature
,
tcltk
,
htmlfiles
,
tools
,
testsuite
global
default_feature
,
tcltk
,
htmlfiles
,
tools
,
testsuite
global
ext_feature
,
private_crt
,
prepend_path
,
update_pip
global
ext_feature
,
private_crt
,
prepend_path
,
pip_feature
default_feature
=
Feature
(
db
,
"DefaultFeature"
,
"Python"
,
default_feature
=
Feature
(
db
,
"DefaultFeature"
,
"Python"
,
"Python Interpreter and Libraries"
,
"Python Interpreter and Libraries"
,
1
,
directory
=
"TARGETDIR"
)
1
,
directory
=
"TARGETDIR"
)
...
@@ -886,10 +886,10 @@ def add_features(db):
...
@@ -886,10 +886,10 @@ def add_features(db):
parent
=
default_feature
,
attributes
=
2
)
parent
=
default_feature
,
attributes
=
2
)
# pip installation isn't enabled by default until a clean uninstall procedure
# pip installation isn't enabled by default until a clean uninstall procedure
# becomes possible
# becomes possible
update_pip
=
Feature
(
db
,
"pip
"
,
"pip"
,
pip_feature
=
Feature
(
db
,
"pip_feature
"
,
"pip"
,
"Install (or upgrade from an earlier version) pip, "
"Install (or upgrade from an earlier version) pip, "
"a tool for installing and managing Python packages."
,
11
,
"a tool for installing and managing Python packages."
,
11
,
parent
=
default_feature
,
attributes
=
2
|
8
,
level
=
2
)
parent
=
default_feature
,
attributes
=
2
|
8
)
testsuite
=
Feature
(
db
,
"Testsuite"
,
"Test suite"
,
testsuite
=
Feature
(
db
,
"Testsuite"
,
"Test suite"
,
"Python test suite (Lib/test/)"
,
13
,
"Python test suite (Lib/test/)"
,
13
,
parent
=
default_feature
,
attributes
=
2
|
8
)
parent
=
default_feature
,
attributes
=
2
|
8
)
...
@@ -1206,6 +1206,8 @@ def add_registry(db):
...
@@ -1206,6 +1206,8 @@ def add_registry(db):
"Documentation"
),
"Documentation"
),
(
"REGISTRY.path"
,
msilib
.
gen_uuid
(),
"TARGETDIR"
,
registry_component
,
None
,
(
"REGISTRY.path"
,
msilib
.
gen_uuid
(),
"TARGETDIR"
,
registry_component
,
None
,
None
),
None
),
(
"REGISTRY.ensurepip"
,
msilib
.
gen_uuid
(),
"TARGETDIR"
,
registry_component
,
"EnsurePipRun"
,
None
),
(
"REGISTRY.def"
,
msilib
.
gen_uuid
(),
"TARGETDIR"
,
registry_component
,
(
"REGISTRY.def"
,
msilib
.
gen_uuid
(),
"TARGETDIR"
,
registry_component
,
None
,
None
)]
+
tcldata
)
None
,
None
)]
+
tcldata
)
# See "FeatureComponents Table".
# See "FeatureComponents Table".
...
@@ -1223,6 +1225,7 @@ def add_registry(db):
...
@@ -1223,6 +1225,7 @@ def add_registry(db):
[(
default_feature
.
id
,
"REGISTRY"
),
[(
default_feature
.
id
,
"REGISTRY"
),
(
htmlfiles
.
id
,
"REGISTRY.doc"
),
(
htmlfiles
.
id
,
"REGISTRY.doc"
),
(
prepend_path
.
id
,
"REGISTRY.path"
),
(
prepend_path
.
id
,
"REGISTRY.path"
),
(
pip_feature
.
id
,
"REGISTRY.ensurepip"
),
(
ext_feature
.
id
,
"REGISTRY.def"
)]
+
(
ext_feature
.
id
,
"REGISTRY.def"
)]
+
tcldata
tcldata
)
)
...
@@ -1309,7 +1312,9 @@ def add_registry(db):
...
@@ -1309,7 +1312,9 @@ def add_registry(db):
"", r"
[
TARGETDIR
]
Python
.
exe
", "
REGISTRY
.
def
"),
"", r"
[
TARGETDIR
]
Python
.
exe
", "
REGISTRY
.
def
"),
("
DisplayIcon
", -1,
("
DisplayIcon
", -1,
r"
Software
\
Microsoft
\
Windows
\
CurrentVersion
\
Uninstall
\
%
s
" % product_code,
r"
Software
\
Microsoft
\
Windows
\
CurrentVersion
\
Uninstall
\
%
s
" % product_code,
"
DisplayIcon
", "
[
TARGETDIR
]
python
.
exe
", "
REGISTRY
")
"
DisplayIcon
", "
[
TARGETDIR
]
python
.
exe
", "
REGISTRY
"),
# Fake registry entry to allow installer to track whether ensurepip has been run
("
EnsurePipRun
", -1, prefix+r"
\
EnsurePipRun
", "", "
#1", "REGISTRY.ensurepip"),
])
])
# Shortcuts, see "Shortcut Table"
# Shortcuts, see "Shortcut Table"
add_data
(
db
,
"Directory"
,
add_data
(
db
,
"Directory"
,
...
...
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