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
5288477c
Commit
5288477c
authored
Feb 06, 2017
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Includes ensurepip and venv packages in nuget package.
parent
6d46ae7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Tools/msi/make_zip.py
Tools/msi/make_zip.py
+11
-2
No files found.
Tools/msi/make_zip.py
View file @
5288477c
...
...
@@ -28,12 +28,15 @@ DEBUG_FILES = {
EXCLUDE_FROM_LIBRARY = {
'
__pycache__
',
'
ensurepip
',
'
idlelib
',
'
pydoc_data
',
'
site
-
packages
',
'
tkinter
',
'
turtledemo
',
}
EXCLUDE_FROM_EMBEDDABLE_LIBRARY = {
'
ensurepip
',
'
venv
',
}
...
...
@@ -78,6 +81,12 @@ def include_in_lib(p):
suffix = p.suffix.lower()
return suffix not in {'
.
pyc
', '
.
pyo
', '
.
exe
'}
def include_in_embeddable_lib(p):
if p.is_dir() and p.name.lower() in EXCLUDE_FROM_EMBEDDABLE_LIBRARY:
return False
return include_in_lib(p)
def include_in_libs(p):
if not is_not_debug(p):
return False
...
...
@@ -108,7 +117,7 @@ EMBED_LAYOUT = [
('
/
', '
$
build
', '
python
*
.
exe
', is_not_debug),
('
/
', '
$
build
', '
*
.
pyd
', is_not_debug),
('
/
', '
$
build
', '
*
.
dll
', is_not_debug),
('
python
{
0.
major
}{
0.
minor
}.
zip
'.format(sys.version_info), '
Lib
', '
**/*
', include_in_lib),
('
python
{
0.
major
}{
0.
minor
}.
zip
'.format(sys.version_info), '
Lib
', '
**/*
', include_in_
embeddable_
lib),
]
if os.getenv('
DOC_FILENAME
'):
...
...
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