aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-10-11 09:14:02 +0200
committerJason R. Coombs <jaraco@jaraco.com>2017-10-11 09:14:43 +0200
commitb67a4c32b19df8b4bf65eb7edc68ba71865787ae (patch)
treeb1962db67fe6fcc345e9e85518c83fc235cf815f
parent2a7ad18393a8cc8d7ebf5d0df77de0715c964acf (diff)
downloadexternal_python_setuptools-b67a4c32b19df8b4bf65eb7edc68ba71865787ae.tar.gz
external_python_setuptools-b67a4c32b19df8b4bf65eb7edc68ba71865787ae.tar.bz2
external_python_setuptools-b67a4c32b19df8b4bf65eb7edc68ba71865787ae.zip
Feed the hobgoblins (delint)
-rw-r--r--setuptools/pep517.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/setuptools/pep517.py b/setuptools/pep517.py
index c8d4b493..4032c5bb 100644
--- a/setuptools/pep517.py
+++ b/setuptools/pep517.py
@@ -28,10 +28,8 @@ Again, this is not a formal definition! Just a "taste" of the module.
import os
import sys
-import subprocess
import tokenize
import shutil
-import tempfile
from setuptools import dist
from setuptools.dist import SetupRequirementsError
@@ -39,12 +37,13 @@ from setuptools.dist import SetupRequirementsError
SETUPTOOLS_IMPLEMENTATION_REVISION = 0.1
-def _run_setup(setup_script='setup.py'): #
+
+def _run_setup(setup_script='setup.py'):
# Note that we can reuse our build directory between calls
# Correctness comes first, then optimization later
- __file__=setup_script
- f=getattr(tokenize, 'open', open)(__file__)
- code=f.read().replace('\\r\\n', '\\n')
+ __file__ = setup_script
+ f = getattr(tokenize, 'open', open)(__file__)
+ code = f.read().replace('\\r\\n', '\\n')
f.close()
exec(compile(code, __file__, 'exec'))