summaryrefslogtreecommitdiff
path: root/setuptools/command/install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-03-28 19:07:52 +0000
committerPJ Eby <distutils-sig@python.org>2006-03-28 19:07:52 +0000
commitc1294e1d0218322a1e3457897198837a071f2271 (patch)
tree266e53c0b6e745b7fa20ccfe50970d8ae49884cc /setuptools/command/install.py
parent0f338a10d98329388cf53e9c6df82bd17ff99d42 (diff)
downloadpython-setuptools-git-c1294e1d0218322a1e3457897198837a071f2271.tar.gz
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
Diffstat (limited to 'setuptools/command/install.py')
-rw-r--r--setuptools/command/install.py10
1 files changed, 5 insertions, 5 deletions
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)