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
dc9fcbd5
Commit
dc9fcbd5
authored
Jul 10, 2018
by
Paul Ganssle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch over to using six.PY{2,3} when possible
parent
54ce6599
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
pkg_resources/py31compat.py
pkg_resources/py31compat.py
+3
-1
setuptools/command/bdist_egg.py
setuptools/command/bdist_egg.py
+1
-1
setuptools/extern/__init__.py
setuptools/extern/__init__.py
+1
-1
setuptools/pep425tags.py
setuptools/pep425tags.py
+4
-2
No files found.
pkg_resources/py31compat.py
View file @
dc9fcbd5
...
...
@@ -2,6 +2,8 @@ import os
import
errno
import
sys
from
.extern
import
six
def
_makedirs_31
(
path
,
exist_ok
=
False
):
try
:
...
...
@@ -15,7 +17,7 @@ def _makedirs_31(path, exist_ok=False):
# and exists_ok considerations are disentangled.
# See https://github.com/pypa/setuptools/pull/1083#issuecomment-315168663
needs_makedirs
=
(
s
ys
.
version_info
.
major
==
2
or
s
ix
.
PY
2
or
(
3
,
4
)
<=
sys
.
version_info
<
(
3
,
4
,
1
)
)
makedirs
=
_makedirs_31
if
needs_makedirs
else
os
.
makedirs
setuptools/command/bdist_egg.py
View file @
dc9fcbd5
...
...
@@ -411,7 +411,7 @@ def scan_module(egg_dir, base, name, stubs):
return True # Extension module
pkg = base[len(egg_dir) + 1:].replace(os.sep, '.')
module = pkg + (pkg and '.' or '') + os.path.splitext(name)[0]
if s
ys.version_info.major ==
2:
if s
ix.PY
2:
skip = 8 # skip magic & date
elif sys.version_info < (3, 7):
skip = 12 # skip magic & date & file size
...
...
setuptools/extern/__init__.py
View file @
dc9fcbd5
...
...
@@ -48,7 +48,7 @@ class VendorImporter:
# on later Python versions to cause relative imports
# in the vendor package to resolve the same modules
# as those going through this importer.
if
sys
.
version_info
.
major
>=
3
:
if
sys
.
version_info
>=
(
3
,
)
:
del
sys
.
modules
[
extant
]
return
mod
except
ImportError
:
...
...
setuptools/pep425tags.py
View file @
dc9fcbd5
...
...
@@ -12,6 +12,8 @@ import sysconfig
import
warnings
from
collections
import
OrderedDict
from
.extern
import
six
from
.
import
glibc
_osx_arch_pat
=
re
.
compile
(
r'(.+)_(\
d+)_(
\d+)_(.+)'
)
...
...
@@ -97,8 +99,8 @@ def get_abi_tag():
lambda
:
sys
.
maxunicode
==
0x10ffff
,
expected
=
4
,
warn
=
(
impl
==
'cp'
and
s
ys
.
version_info
.
major
==
2
))
\
and
s
ys
.
version_info
.
major
==
2
:
s
ix
.
PY
2
))
\
and
s
ix
.
PY
2
:
u
=
'u'
abi
=
'%s%s%s%s%s'
%
(
impl
,
get_impl_ver
(),
d
,
m
,
u
)
elif
soabi
and
soabi
.
startswith
(
'cpython-'
):
...
...
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