summaryrefslogtreecommitdiff
path: root/setuptools/command/install_scripts.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-12-20 16:31:29 +0000
committerPJ Eby <distutils-sig@python.org>2005-12-20 16:31:29 +0000
commitd88c2b8c99c57a434209741a65bdb2751415ec3f (patch)
tree553d4e9192ab35445f6d5d14fe26974f464e288c /setuptools/command/install_scripts.py
parentf85098d6389e336bfb444132be6032e292eab19f (diff)
downloadpython-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-xsetuptools/command/install_scripts.py7
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),