From 4356a2dc99a74be0d970f63e045eba40f463695d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 4 Jan 2015 22:22:44 -0500 Subject: Allow CommandSpec to be constructed simply from a list. --- setuptools/command/easy_install.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setuptools/command') 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. -- cgit v1.2.1