From c1294e1d0218322a1e3457897198837a071f2271 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Tue, 28 Mar 2006 19:07:52 +0000 Subject: Support Python 2.5, which now includes its own install_egg_info command. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043406 --- setuptools/command/install.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'setuptools/command/install.py') diff --git a/setuptools/command/install.py b/setuptools/command/install.py index 664614ac..7221b171 100644 --- a/setuptools/command/install.py +++ b/setuptools/command/install.py @@ -10,17 +10,17 @@ class install(_install): ('single-version-externally-managed', None, "used by system package builders to create 'flat' eggs"), ] - boolean_options = _install.boolean_options + [ 'old-and-unmanageable', 'single-version-externally-managed', ] - - sub_commands = [ - cmd for cmd in _install.sub_commands if cmd[0] != 'install_scripts' - ] + [ + new_commands = [ ('install_egg_info', lambda self: True), ('install_scripts', lambda self: True), ] + _nc = dict(new_commands) + sub_commands = [ + cmd for cmd in _install.sub_commands if cmd[0] not in _nc + ] + new_commands def initialize_options(self): _install.initialize_options(self) -- cgit v1.2.3