Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
d470273d
Commit
d470273d
authored
Dec 18, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from dstufft/silence-pep440-warnings
Silence PEP440Warning by default unless invoking easy_install
parents
57e7ab8e
5df13754
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
pkg_resources.py
pkg_resources.py
+7
-0
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+5
-0
No files found.
pkg_resources.py
View file @
d470273d
...
...
@@ -2932,6 +2932,13 @@ def _mkstemp(*args,**kw):
os.open = old_open
# Silence the PEP440Warning by default, so that end users don't get hit by it
# randomly just because they use pkg_resources. We want to append the rule
# because we want earlier uses of filterwarnings to take precedence over this
# one.
warnings.filterwarnings("
ignore
", category=PEP440Warning, append=True)
# Set up global resource manager (deliberately not state-saved)
_manager = ResourceManager()
def _initialize(g):
...
...
setuptools/command/easy_install.py
View file @
d470273d
...
...
@@ -54,9 +54,14 @@ from pkg_resources import (
import
pkg_resources
# Turn on PEP440Warnings
warnings
.
filterwarnings
(
"default"
,
category
=
pkg_resources
.
PEP440Warning
)
sys_executable
=
os
.
environ
.
get
(
'__PYVENV_LAUNCHER__'
,
os
.
path
.
normpath
(
sys
.
executable
))
__all__
=
[
'samefile'
,
'easy_install'
,
'PthDistributions'
,
'extract_wininst_cfg'
,
'main'
,
'get_exe_prefixes'
,
...
...
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