[Python-checkins] cpython (3.5): Includes ensurepip and venv packages in nuget package.

steve.dower python-checkins at python.org
Mon Feb 6 17:13:30 EST 2017


https://hg.python.org/cpython/rev/dc4bcc4bc8c6
changeset:   106451:dc4bcc4bc8c6
branch:      3.5
parent:      106432:c6506f759db1
user:        Steve Dower <steve.dower at microsoft.com>
date:        Mon Feb 06 14:11:34 2017 -0800
summary:
  Includes ensurepip and venv packages in nuget package.

files:
  Tools/msi/make_zip.py |  13 +++++++++++--
  1 files changed, 11 insertions(+), 2 deletions(-)


diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -28,12 +28,15 @@
 
 EXCLUDE_FROM_LIBRARY = {
     '__pycache__',
-    'ensurepip',
     'idlelib',
     'pydoc_data',
     'site-packages',
     'tkinter',
     'turtledemo',
+}
+
+EXCLUDE_FROM_EMBEDDABLE_LIBRARY = {
+    'ensurepip',
     'venv',
 }
 
@@ -78,6 +81,12 @@
     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 @@
     ('/', '$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'):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list