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
commit4356a2dc99a74be0d970f63e045eba40f463695d (patch)
treeea3ecf79cf528fd628c15e764455d452fb7ea0ee
parent6ab7d6dbb13e0ef1f44bf0461f3ffdb06f07b3b2 (diff)
downloadpython-setuptools-git-4356a2dc99a74be0d970f63e045eba40f463695d.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.