From d88c2b8c99c57a434209741a65bdb2751415ec3f Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Tue, 20 Dec 2005 16:31:29 +0000 Subject: 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 --- setuptools/command/install_scripts.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setuptools/command/install_scripts.py') 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), -- cgit v1.2.3