diff options
author | PJ Eby <distutils-sig@python.org> | 2005-12-20 16:31:29 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-12-20 16:31:29 +0000 |
commit | d88c2b8c99c57a434209741a65bdb2751415ec3f (patch) | |
tree | 553d4e9192ab35445f6d5d14fe26974f464e288c /setuptools/command/install_scripts.py | |
parent | f85098d6389e336bfb444132be6032e292eab19f (diff) | |
download | python-setuptools-git-d88c2b8c99c57a434209741a65bdb2751415ec3f.tar.gz |
Fix "legacy mode" trying to install scripts when there are none.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041777
Diffstat (limited to 'setuptools/command/install_scripts.py')
-rwxr-xr-x | setuptools/command/install_scripts.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py index 470d4be4..601b66f3 100755 --- a/setuptools/command/install_scripts.py +++ b/setuptools/command/install_scripts.py @@ -5,14 +5,15 @@ from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log - class install_scripts(_install_scripts): """Do normal script install, plus any egg_info wrapper scripts""" def run(self): self.run_command("egg_info") - _install_scripts.run(self) # run first to set up self.outfiles - + if self.distribution.scripts: + _install_scripts.run(self) # run first to set up self.outfiles + else: + self.outfiles = [] ei_cmd = self.get_finalized_command("egg_info") dist = Distribution( ei_cmd.egg_base, PathMetadata(ei_cmd.egg_base, ei_cmd.egg_info), |