Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
202f679a
Commit
202f679a
authored
May 21, 2020
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: pip Python2.7 warning displayed too often
Solution: show it only once
parent
911dfb3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
CHANGES.rst
CHANGES.rst
+3
-1
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+11
-0
No files found.
CHANGES.rst
View file @
202f679a
...
...
@@ -4,7 +4,9 @@ Change History
3.0.0
a2
(
unreleased
)
====================
-
Better
patch
for
``
pkg_resources
.
Distribution
.
hashcmp
``
performance
.
-
Show
only
once
pip
warning
about
python
version
.
-
Better
patch
for
``
pkg_resources
.
Distribution
.
hashcmp
``
performance
.
3.0.0
a1
(
2020
-
05
-
17
)
...
...
src/zc/buildout/easy_install.py
View file @
202f679a
...
...
@@ -1659,6 +1659,17 @@ def call_pip_install(spec, dest):
args
.
append
(
spec
)
try
:
from
pip._internal.cli.cmdoptions
import
no_python_version_warning
HAS_WARNING_OPTION
=
True
except
ImportError
:
HAS_WARNING_OPTION
=
False
if
HAS_WARNING_OPTION
:
if
not
hasattr
(
call_pip_install
,
'displayed'
):
call_pip_install
.
displayed
=
True
else
:
args
.
append
(
'--no-python-version-warning'
)
if
level
<=
logging
.
DEBUG
:
logger
.
debug
(
'Running pip install:
\
n
"%s"
\
n
path=%s
\
n
'
,
'" "'
.
join
(
args
),
path
)
...
...
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