diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-07-24 22:31:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 22:31:48 (GMT) |
commit | 4b7ce105ff80467bf4d79c413d7adc256b824153 (patch) | |
tree | bf7343a25f58d5f47ada3d52d965d68963aa7853 /PC/layout/support/pip.py | |
parent | 0cdb21d6eb3428abe50a55f9291ca0e9728654d9 (diff) | |
download | cpython-4b7ce105ff80467bf4d79c413d7adc256b824153.zip cpython-4b7ce105ff80467bf4d79c413d7adc256b824153.tar.gz cpython-4b7ce105ff80467bf4d79c413d7adc256b824153.tar.bz2 |
bpo-37672: Switch Windows Store package to use pip.ini for user mode (GH-14939)
(cherry picked from commit 123536fdab7b8def15c859aa70232bc55ec73096)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'PC/layout/support/pip.py')
-rw-r--r-- | PC/layout/support/pip.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/PC/layout/support/pip.py b/PC/layout/support/pip.py index eada456..4ad3b1d 100644 --- a/PC/layout/support/pip.py +++ b/PC/layout/support/pip.py @@ -33,7 +33,11 @@ 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 - yield "pip.ini", ("pip.ini", b"[global]\nuser=yes") + 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): |