Commit d947e4da authored by Steve Dower's avatar Steve Dower

Includes ensurepip and venv packages in nuget package.

parents 0fa47469 f007b49e
...@@ -29,12 +29,15 @@ DEBUG_FILES = { ...@@ -29,12 +29,15 @@ DEBUG_FILES = {
EXCLUDE_FROM_LIBRARY = { EXCLUDE_FROM_LIBRARY = {
'__pycache__', '__pycache__',
'ensurepip',
'idlelib', 'idlelib',
'pydoc_data', 'pydoc_data',
'site-packages', 'site-packages',
'tkinter', 'tkinter',
'turtledemo', 'turtledemo',
}
EXCLUDE_FROM_EMBEDDABLE_LIBRARY = {
'ensurepip',
'venv', 'venv',
} }
...@@ -82,6 +85,12 @@ def include_in_lib(p): ...@@ -82,6 +85,12 @@ def include_in_lib(p):
suffix = p.suffix.lower() suffix = p.suffix.lower()
return suffix not in {'.pyc', '.pyo', '.exe'} 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): def include_in_libs(p):
if not is_not_debug(p): if not is_not_debug(p):
return False return False
...@@ -114,7 +123,7 @@ EMBED_LAYOUT = [ ...@@ -114,7 +123,7 @@ EMBED_LAYOUT = [
('/', 'PCBuild/$arch', 'python*.exe', is_not_debug), ('/', 'PCBuild/$arch', 'python*.exe', is_not_debug),
('/', 'PCBuild/$arch', '*.pyd', is_not_debug), ('/', 'PCBuild/$arch', '*.pyd', is_not_debug),
('/', 'PCBuild/$arch', '*.dll', 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'): if os.getenv('DOC_FILENAME'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment