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
a0cd32ea
Commit
a0cd32ea
authored
Apr 03, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
56e49ec7
8fe7605a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
pkg_resources/__init__.py
pkg_resources/__init__.py
+2
-2
pkg_resources/_vendor/packaging/specifiers.py
pkg_resources/_vendor/packaging/specifiers.py
+1
-1
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+1
-1
setuptools/sandbox.py
setuptools/sandbox.py
+4
-4
No files found.
pkg_resources/__init__.py
View file @
a0cd32ea
...
@@ -2528,7 +2528,7 @@ class Distribution(object):
...
@@ -2528,7 +2528,7 @@ class Distribution(object):
if
not
is_legacy
:
if
not
is_legacy
:
return
return
# While an empty version is tech
in
cally a legacy version and
# While an empty version is tech
ni
cally a legacy version and
# is not a valid PEP 440 version, it's also unlikely to
# is not a valid PEP 440 version, it's also unlikely to
# actually come from someone and instead it is more likely that
# actually come from someone and instead it is more likely that
# it comes from setuptools attempting to parse a filename and
# it comes from setuptools attempting to parse a filename and
...
@@ -2542,7 +2542,7 @@ class Distribution(object):
...
@@ -2542,7 +2542,7 @@ class Distribution(object):
non PEP 440,
non PEP 440,
version. You may find odd behavior and sort order.
version. You may find odd behavior and sort order.
In particular it will be sorted as less than 0.0. It
In particular it will be sorted as less than 0.0. It
is recommend to migrate to PEP 440 compatible
is recommend
ed
to migrate to PEP 440 compatible
versions.
versions.
"""
).
strip
().
replace
(
'
\
n
'
,
' '
)
"""
).
strip
().
replace
(
'
\
n
'
,
' '
)
...
...
pkg_resources/_vendor/packaging/specifiers.py
View file @
a0cd32ea
...
@@ -502,7 +502,7 @@ class Specifier(_IndividualSpecifier):
...
@@ -502,7 +502,7 @@ class Specifier(_IndividualSpecifier):
return
False
return
False
# Ensure that we do not allow a local version of the version mentioned
# Ensure that we do not allow a local version of the version mentioned
# in the specifier, which is tech
in
cally greater than, to match.
# in the specifier, which is tech
ni
cally greater than, to match.
if
prospective
.
local
is
not
None
:
if
prospective
.
local
is
not
None
:
if
Version
(
prospective
.
base_version
)
==
Version
(
spec
.
base_version
):
if
Version
(
prospective
.
base_version
)
==
Version
(
spec
.
base_version
):
return
False
return
False
...
...
setuptools/command/easy_install.py
View file @
a0cd32ea
...
@@ -152,7 +152,7 @@ class easy_install(Command):
...
@@ -152,7 +152,7 @@ class easy_install(Command):
create_index
=
PackageIndex
create_index
=
PackageIndex
def
initialize_options
(
self
):
def
initialize_options
(
self
):
# the --user option seems
t
to be an opt-in one,
# the --user option seems to be an opt-in one,
# so the default should be False.
# so the default should be False.
self
.
user
=
0
self
.
user
=
0
self
.
zip_ok
=
self
.
local_snapshots_ok
=
None
self
.
zip_ok
=
self
.
local_snapshots_ok
=
None
...
...
setuptools/sandbox.py
View file @
a0cd32ea
...
@@ -34,12 +34,12 @@ def _execfile(filename, globals, locals=None):
...
@@ -34,12 +34,12 @@ def _execfile(filename, globals, locals=None):
Python 3 implementation of execfile.
Python 3 implementation of execfile.
"""
"""
mode
=
'rb'
mode
=
'rb'
# Python 2.6 compile requires LF for newlines, so use deprecated
# Universal newlines support.
if
sys
.
version_info
<
(
2
,
7
):
mode
+=
'U'
with
open
(
filename
,
mode
)
as
stream
:
with
open
(
filename
,
mode
)
as
stream
:
script
=
stream
.
read
()
script
=
stream
.
read
()
# compile() function in Python 2.6 and 3.1 requires LF line endings.
if
sys
.
version_info
[:
2
]
<
(
2
,
7
)
or
sys
.
version_info
[:
2
]
>=
(
3
,
0
)
and
sys
.
version_info
[:
2
]
<
(
3
,
2
):
script
=
script
.
replace
(
b'
\
r
\
n
'
,
b'
\
n
'
)
script
=
script
.
replace
(
b'
\
r
'
,
b'
\
n
'
)
if
locals
is
None
:
if
locals
is
None
:
locals
=
globals
locals
=
globals
code
=
compile
(
script
,
filename
,
'exec'
)
code
=
compile
(
script
,
filename
,
'exec'
)
...
...
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