diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-09-11 23:48:25 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-09-11 23:48:25 +0200 |
commit | c8fafe39c39a6814741b3f2825320c565c02058c (patch) | |
tree | 719b7deb3b58520b102dbe9b2dca2cc67a31935c /setuptools/command/install.py | |
parent | c4ea358c7cdcd76dc9bf35b54e22cc9be05dc62a (diff) | |
download | python-setuptools-git-c8fafe39c39a6814741b3f2825320c565c02058c.tar.gz |
Work around apparent 3.x limitation wrt. variables
in list comprehensions.
--HG--
branch : distribute
extra : rebase_source : 214eb64288ef1955fd06ba1cf594b6a780cccde8
Diffstat (limited to 'setuptools/command/install.py')
-rw-r--r-- | setuptools/command/install.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/command/install.py b/setuptools/command/install.py index a150c435..247c4f25 100644 --- a/setuptools/command/install.py +++ b/setuptools/command/install.py @@ -18,9 +18,6 @@ class install(_install): ('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) @@ -104,6 +101,10 @@ class install(_install): cmd.run() setuptools.bootstrap_install_from = None +# XXX Python 3.1 doesn't see _nc if this is inside the class +install.sub_commands = [ + cmd for cmd in _install.sub_commands if cmd[0] not in install._nc + ] + install.new_commands |