mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Includes ensurepip and venv packages in nuget package.
This commit is contained in:
parent
6d46ae7d12
commit
5288477cfd
1 changed files with 11 additions and 2 deletions
|
@ -28,12 +28,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',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,6 +81,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
|
||||||
|
@ -108,7 +117,7 @@ EMBED_LAYOUT = [
|
||||||
('/', '$build', 'python*.exe', is_not_debug),
|
('/', '$build', 'python*.exe', is_not_debug),
|
||||||
('/', '$build', '*.pyd', is_not_debug),
|
('/', '$build', '*.pyd', is_not_debug),
|
||||||
('/', '$build', '*.dll', 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'):
|
if os.getenv('DOC_FILENAME'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue