aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install.py
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2014-06-18 20:31:05 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2014-06-18 20:31:05 +0300
commit8e3f9d3253d1d0fb820dad4249d5110d017595c1 (patch)
tree04cb00f66a8e3a6b41031d7dfb39c598ce4aa06d /setuptools/command/install.py
parentafea314acbcd6db19dcc96d84fa9652f71b883fb (diff)
downloadexternal_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.tar.gz
external_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.tar.bz2
external_python_setuptools-8e3f9d3253d1d0fb820dad4249d5110d017595c1.zip
Fixed PEP 8 compliancy of the setuptools.command package
Diffstat (limited to 'setuptools/command/install.py')
-rw-r--r--setuptools/command/install.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/setuptools/command/install.py b/setuptools/command/install.py
index 1f489734..d2bca2ec 100644
--- a/setuptools/command/install.py
+++ b/setuptools/command/install.py
@@ -1,22 +1,24 @@
-import setuptools
+from distutils.errors import DistutilsArgError
import inspect
import glob
import warnings
import platform
import distutils.command.install as orig
-from distutils.errors import DistutilsArgError
+
+import setuptools
# Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for
-# now. See https://bitbucket.org/pypa/setuptools/issue/199/
+# now. See https://bitbucket.org/pypa/setuptools/issue/199/
_install = orig.install
+
class install(orig.install):
"""Use easy_install to install the package, w/dependencies"""
user_options = orig.install.user_options + [
('old-and-unmanageable', None, "Try not to use this!"),
('single-version-externally-managed', None,
- "used by system package builders to create 'flat' eggs"),
+ "used by system package builders to create 'flat' eggs"),
]
boolean_options = orig.install.boolean_options + [
'old-and-unmanageable', 'single-version-externally-managed',
@@ -115,7 +117,9 @@ class install(orig.install):
cmd.run()
setuptools.bootstrap_install_from = None
+
# XXX Python 3.1 doesn't see _nc if this is inside the class
-install.sub_commands = [
- cmd for cmd in orig.install.sub_commands if cmd[0] not in install._nc
- ] + install.new_commands
+install.sub_commands = (
+ [cmd for cmd in orig.install.sub_commands if cmd[0] not in install._nc] +
+ install.new_commands
+)