Commit 19f6940c authored by Steve Dower's avatar Steve Dower Committed by Zachary Ware

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

parent aa929273
The ``pip.ini`` is no longer included in the Nuget package.
......@@ -17,6 +17,7 @@ def public(f):
OPTIONS = {
"stable": {"help": "stable ABI stub"},
"pip": {"help": "pip"},
"pip-user": {"help": "pip.ini file for default --user"},
"distutils": {"help": "distutils"},
"tcltk": {"help": "Tcl, Tk and tkinter"},
"idle": {"help": "Idle"},
......@@ -42,6 +43,7 @@ PRESETS = {
"options": [
"stable",
"pip",
"pip-user",
"distutils",
"tcltk",
"idle",
......
......@@ -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):
......
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