aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-11-24 10:54:46 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-11-24 10:54:46 -0500
commitf05162f5583979a3cc56492b91211cbe54353efa (patch)
tree1bbda6d5180fb5b6cb6574c1f5a9ed8c765589a7 /setuptools/command/easy_install.py
parent40436edb86b034979b716695ec68fe55bb656d79 (diff)
downloadexternal_python_setuptools-f05162f5583979a3cc56492b91211cbe54353efa.tar.gz
external_python_setuptools-f05162f5583979a3cc56492b91211cbe54353efa.tar.bz2
external_python_setuptools-f05162f5583979a3cc56492b91211cbe54353efa.zip
Short circuit on skipped behavior, leaving main behavior in the body of the method.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py7
1 files changed, 4 insertions, 3 deletions
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"""