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 | c1fc5a52c456b30d60f8047c83c225c1fb694d1e (patch) | |
| tree | 610e3ab89790cc2e9cbd77883fe4e9bdf9801f4a | |
| parent | 9ff252ee54d5114b0af3d4e4683d6a83b5310d53 (diff) | |
| download | python-setuptools-bitbucket-c1fc5a52c456b30d60f8047c83c225c1fb694d1e.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. |
