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
ca7aa27c
Commit
ca7aa27c
authored
Apr 26, 2018
by
Hugo
Committed by
Paul Ganssle
May 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant Python 3.1 code
parent
7392f01f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+2
-1
setuptools/py31compat.py
setuptools/py31compat.py
+0
-14
No files found.
setuptools/command/easy_install.py
View file @
ca7aa27c
...
...
@@ -40,12 +40,13 @@ import subprocess
import
shlex
import
io
from
sysconfig
import
get_config_vars
,
get_path
from
setuptools.extern
import
six
from
setuptools.extern.six.moves
import
configparser
,
map
from
setuptools
import
Command
from
setuptools.sandbox
import
run_setup
from
setuptools.py31compat
import
get_path
,
get_config_vars
from
setuptools.py27compat
import
rmtree_safe
from
setuptools.command
import
setopt
from
setuptools.archive_util
import
unpack_archive
...
...
setuptools/py31compat.py
View file @
ca7aa27c
__all__
=
[
'get_config_vars'
,
'get_path'
]
try
:
# Python 2.7 or >=3.2
from
sysconfig
import
get_config_vars
,
get_path
except
ImportError
:
from
distutils.sysconfig
import
get_config_vars
,
get_python_lib
def
get_path
(
name
):
if
name
not
in
(
'platlib'
,
'purelib'
):
raise
ValueError
(
"Name must be purelib or platlib"
)
return
get_python_lib
(
name
==
'platlib'
)
try
:
# Python >=3.2
from
tempfile
import
TemporaryDirectory
...
...
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