bpo-38114: Do not include pip.ini in Nuget package (GH-15964)

This commit is contained in:
Steve Dower 2019-09-11 16:16:27 +01:00 committed by Zachary Ware
parent aa929273ca
commit 19f6940cd7
3 changed files with 9 additions and 5 deletions

View file

@ -33,11 +33,12 @@ def get_pip_layout(ns):
pkg_root = "packages/{}" if ns.zip_lib else "Lib/site-packages/{}"
for dest, src in rglob(pip_dir, "**/*"):
yield pkg_root.format(dest), src
content = "\n".join(
"[{}]\nuser=yes".format(n)
for n in ["install", "uninstall", "freeze", "list"]
)
yield "pip.ini", ("pip.ini", content.encode())
if ns.include_pip_user:
content = "\n".join(
"[{}]\nuser=yes".format(n)
for n in ["install", "uninstall", "freeze", "list"]
)
yield "pip.ini", ("pip.ini", content.encode())
def extract_pip_files(ns):