summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2017-02-06 14:12:57 -0800
committerSteve Dower <steve.dower@microsoft.com>2017-02-06 14:12:57 -0800
commit8d639a88435303afeea7c2b2a7aa3ab20e56f762 (patch)
treee4042cb4879ae47f5d273da09047c20f3b529682
parent826745ba953b4ef23462fb0bc2d7b3db23b51d89 (diff)
parent5b4df5813c20fe96f117d0201965b52e86a1a66d (diff)
downloadcpython-8d639a88435303afeea7c2b2a7aa3ab20e56f762.tar.gz
Includes ensurepip and venv packages in nuget package.
-rw-r--r--Tools/msi/make_zip.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py
index 8dbe83e4f4..710e4a5c23 100644
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -29,12 +29,15 @@ DEBUG_FILES = {
EXCLUDE_FROM_LIBRARY = {
'__pycache__',
- 'ensurepip',
'idlelib',
'pydoc_data',
'site-packages',
'tkinter',
'turtledemo',
+}
+
+EXCLUDE_FROM_EMBEDDABLE_LIBRARY = {
+ 'ensurepip',
'venv',
}
@@ -82,6 +85,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
@@ -114,7 +123,7 @@ EMBED_LAYOUT = [
('/', 'PCBuild/$arch', 'python*.exe', is_not_debug),
('/', 'PCBuild/$arch', '*.pyd', is_not_debug),
('/', 'PCBuild/$arch', '*.dll', is_not_debug),
- ('{}.zip'.format(BASE_NAME), 'Lib', '**/*', include_in_lib),
+ ('{}.zip'.format(BASE_NAME), 'Lib', '**/*', include_in_embeddable_lib),
]
if os.getenv('DOC_FILENAME'):