From f05162f5583979a3cc56492b91211cbe54353efa Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 24 Nov 2015 10:54:46 -0500 Subject: Short circuit on skipped behavior, leaving main behavior in the body of the method. --- setuptools/command/easy_install.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 45d180bb..4fae2560 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -760,9 +760,10 @@ class easy_install(Command): return dst def install_wrapper_scripts(self, dist): - if not self.exclude_scripts: - for args in ScriptWriter.best().get_args(dist): - self.write_script(*args) + if self.exclude_scripts: + return + for args in ScriptWriter.best().get_args(dist): + self.write_script(*args) def install_script(self, dist, script_name, script_text, dev_path=None): """Generate a legacy script wrapper and install it""" -- cgit v1.2.1