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
a672328f
Commit
a672328f
authored
Apr 30, 2020
by
Victor Stinner
Committed by
GitHub
Apr 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-40443: Remove unused imports in distutils (GH-19802)
parent
ea19518a
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
6 additions
and
17 deletions
+6
-17
_msvccompiler.py
_msvccompiler.py
+0
-4
bcppcompiler.py
bcppcompiler.py
+2
-2
ccompiler.py
ccompiler.py
+1
-1
command/bdist_rpm.py
command/bdist_rpm.py
+0
-1
command/bdist_wininst.py
command/bdist_wininst.py
+1
-1
command/check.py
command/check.py
+0
-1
command/upload.py
command/upload.py
+0
-1
cygwinccompiler.py
cygwinccompiler.py
+0
-2
msvc9compiler.py
msvc9compiler.py
+1
-2
msvccompiler.py
msvccompiler.py
+1
-1
sysconfig.py
sysconfig.py
+0
-1
No files found.
_msvccompiler.py
View file @
a672328f
...
...
@@ -14,8 +14,6 @@ for older versions in distutils.msvc9compiler and distutils.msvccompiler.
# ported to VS 2015 by Steve Dower
import
os
import
shutil
import
stat
import
subprocess
import
winreg
...
...
@@ -65,8 +63,6 @@ def _find_vc2017():
If vswhere.exe is not available, by definition, VS 2017 is not
installed.
"""
import
json
root
=
os
.
environ
.
get
(
"ProgramFiles(x86)"
)
or
os
.
environ
.
get
(
"ProgramFiles"
)
if
not
root
:
return
None
,
None
...
...
bcppcompiler.py
View file @
a672328f
...
...
@@ -14,10 +14,10 @@ for the Borland C++ compiler.
import
os
from
distutils.errors
import
\
DistutilsExecError
,
DistutilsPlatformError
,
\
DistutilsExecError
,
\
CompileError
,
LibError
,
LinkError
,
UnknownFileError
from
distutils.ccompiler
import
\
CCompiler
,
gen_preprocess_options
,
gen_lib_options
CCompiler
,
gen_preprocess_options
from
distutils.file_util
import
write_file
from
distutils.dep_util
import
newer
from
distutils
import
log
...
...
ccompiler.py
View file @
a672328f
...
...
@@ -8,7 +8,7 @@ from distutils.errors import *
from
distutils.spawn
import
spawn
from
distutils.file_util
import
move_file
from
distutils.dir_util
import
mkpath
from
distutils.dep_util
import
newer_
pairwise
,
newer_
group
from
distutils.dep_util
import
newer_group
from
distutils.util
import
split_quoted
,
execute
from
distutils
import
log
...
...
command/bdist_rpm.py
View file @
a672328f
...
...
@@ -6,7 +6,6 @@ distributions)."""
import
subprocess
,
sys
,
os
from
distutils.core
import
Command
from
distutils.debug
import
DEBUG
from
distutils.util
import
get_platform
from
distutils.file_util
import
write_file
from
distutils.errors
import
*
from
distutils.sysconfig
import
get_python_version
...
...
command/bdist_wininst.py
View file @
a672328f
...
...
@@ -8,7 +8,7 @@ import sys
import
warnings
from
distutils.core
import
Command
from
distutils.util
import
get_platform
from
distutils.dir_util
import
create_tree
,
remove_tree
from
distutils.dir_util
import
remove_tree
from
distutils.errors
import
*
from
distutils.sysconfig
import
get_python_version
from
distutils
import
log
...
...
command/check.py
View file @
a672328f
...
...
@@ -11,7 +11,6 @@ try:
from
docutils.parsers.rst
import
Parser
from
docutils
import
frontend
from
docutils
import
nodes
from
io
import
StringIO
class
SilentReporter
(
Reporter
):
...
...
command/upload.py
View file @
a672328f
...
...
@@ -7,7 +7,6 @@ index).
import
os
import
io
import
platform
import
hashlib
from
base64
import
standard_b64encode
from
urllib.request
import
urlopen
,
Request
,
HTTPError
...
...
cygwinccompiler.py
View file @
a672328f
...
...
@@ -51,12 +51,10 @@ import copy
from
subprocess
import
Popen
,
PIPE
,
check_output
import
re
from
distutils.ccompiler
import
gen_preprocess_options
,
gen_lib_options
from
distutils.unixccompiler
import
UnixCCompiler
from
distutils.file_util
import
write_file
from
distutils.errors
import
(
DistutilsExecError
,
CCompilerError
,
CompileError
,
UnknownFileError
)
from
distutils
import
log
from
distutils.version
import
LooseVersion
from
distutils.spawn
import
find_executable
...
...
msvc9compiler.py
View file @
a672328f
...
...
@@ -19,8 +19,7 @@ import re
from
distutils.errors
import
DistutilsExecError
,
DistutilsPlatformError
,
\
CompileError
,
LibError
,
LinkError
from
distutils.ccompiler
import
CCompiler
,
gen_preprocess_options
,
\
gen_lib_options
from
distutils.ccompiler
import
CCompiler
,
gen_lib_options
from
distutils
import
log
from
distutils.util
import
get_platform
...
...
msvccompiler.py
View file @
a672328f
...
...
@@ -13,7 +13,7 @@ from distutils.errors import \
DistutilsExecError
,
DistutilsPlatformError
,
\
CompileError
,
LibError
,
LinkError
from
distutils.ccompiler
import
\
CCompiler
,
gen_
preprocess_options
,
gen_
lib_options
CCompiler
,
gen_lib_options
from
distutils
import
log
_can_read_reg
=
False
...
...
sysconfig.py
View file @
a672328f
...
...
@@ -15,7 +15,6 @@ import re
import
sys
from
.errors
import
DistutilsPlatformError
from
.util
import
get_platform
,
get_host_platform
# These are needed in a couple of spots, so just compute them once.
PREFIX
=
os
.
path
.
normpath
(
sys
.
prefix
)
...
...
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