diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 22:22:44 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 22:22:44 -0500 |
| commit | 4356a2dc99a74be0d970f63e045eba40f463695d (patch) | |
| tree | ea3ecf79cf528fd628c15e764455d452fb7ea0ee | |
| parent | 6ab7d6dbb13e0ef1f44bf0461f3ffdb06f07b3b2 (diff) | |
| download | python-setuptools-git-4356a2dc99a74be0d970f63e045eba40f463695d.tar.gz | |
Allow CommandSpec to be constructed simply from a list.
| -rwxr-xr-x | setuptools/command/easy_install.py | 2 |
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. |
