summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2017-02-06 22:11:34 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2017-02-06 22:11:34 (GMT)
commit5288477cfd1528cc370439b7f3fbcf38f5d59781 (patch)
treebac4f41bef9a3f6adaf73eff74a469f8112e0142 /Tools
parent6d46ae7d12d2cbe4c5b2bd7b023dd37ff12dec68 (diff)
downloadcpython-5288477cfd1528cc370439b7f3fbcf38f5d59781.zip
cpython-5288477cfd1528cc370439b7f3fbcf38f5d59781.tar.gz
cpython-5288477cfd1528cc370439b7f3fbcf38f5d59781.tar.bz2
Includes ensurepip and venv packages in nuget package.
Diffstat (limited to 'Tools')
-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 9db96cb..6a03cbe 100644
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -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'):