summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-04 22:22:44 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-04 22:22:44 -0500
commitc1fc5a52c456b30d60f8047c83c225c1fb694d1e (patch)
tree610e3ab89790cc2e9cbd77883fe4e9bdf9801f4a
parent9ff252ee54d5114b0af3d4e4683d6a83b5310d53 (diff)
downloadpython-setuptools-bitbucket-c1fc5a52c456b30d60f8047c83c225c1fb694d1e.tar.gz
Allow CommandSpec to be constructed simply from a list.
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 0b24c8e3..fb953dbb 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1870,6 +1870,8 @@ class CommandSpec(list):
"""
if isinstance(param, cls):
return param
+ if isinstance(param, list):
+ return cls(param)
if param is None:
return cls.from_environment()
# otherwise, assume it's a string.