Commits

Martin von Löwis committed d36ad46

Work around apparent 3.x limitation wrt. variables
in list comprehensions.

  • Participants
  • Parent commits 3753755
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/command/install.py

         ('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)
         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