Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
19f6940c
Commit
19f6940c
authored
Sep 11, 2019
by
Steve Dower
Committed by
Zachary Ware
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38114: Do not include pip.ini in Nuget package (GH-15964)
parent
aa929273
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
Misc/NEWS.d/next/Windows/2019-09-11-15-24-04.bpo-38114.cc0E5E.rst
...S.d/next/Windows/2019-09-11-15-24-04.bpo-38114.cc0E5E.rst
+1
-0
PC/layout/support/options.py
PC/layout/support/options.py
+2
-0
PC/layout/support/pip.py
PC/layout/support/pip.py
+6
-5
No files found.
Misc/NEWS.d/next/Windows/2019-09-11-15-24-04.bpo-38114.cc0E5E.rst
0 → 100644
View file @
19f6940c
The ``pip.ini`` is no longer included in the Nuget package.
PC/layout/support/options.py
View file @
19f6940c
...
...
@@ -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"
,
...
...
PC/layout/support/pip.py
View file @
19f6940c
...
...
@@ -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
(
"[{}]
\
n
user=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
(
"[{}]
\
n
user=yes"
.
format
(
n
)
for
n
in
[
"install"
,
"uninstall"
,
"freeze"
,
"list"
]
)
yield
"pip.ini"
,
(
"pip.ini"
,
content
.
encode
())
def
extract_pip_files
(
ns
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment