Commit c8fafe39 authored by Martin v. Löwis's avatar Martin v. Löwis

Work around apparent 3.x limitation wrt. variables

in list comprehensions.

--HG--
branch : distribute
extra : rebase_source : 214eb64288ef1955fd06ba1cf594b6a780cccde8
parent c4ea358c
...@@ -18,9 +18,6 @@ class install(_install): ...@@ -18,9 +18,6 @@ class install(_install):
('install_scripts', lambda self: True), ('install_scripts', lambda self: True),
] ]
_nc = dict(new_commands) _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): def initialize_options(self):
_install.initialize_options(self) _install.initialize_options(self)
...@@ -104,6 +101,10 @@ class install(_install): ...@@ -104,6 +101,10 @@ class install(_install):
cmd.run() cmd.run()
setuptools.bootstrap_install_from = None 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment