[issue3116] c3a6ec304055 breaks py2exe

Pascal Quantin bugs at mercurial.selenic.com
Sun Nov 20 11:36:56 CST 2011


New submission from Pascal Quantin <pascal.quantin at gmail.com>:

Since changeset c3a6ec304055 was pushed (setup: subclass distribution
instead of overwriting original), it is no more possible to build a py2exe
Windows binary of mercurial default branch. It raises the following warning
and backtrace:
c:\Python26\lib\site-packages\py2exe\build_exe.py:16: DeprecationWarning:
the sets module is deprecated
  import sets
c:\Python26\lib\distutils\dist.py:266: UserWarning: Unknown distribution
option: 'console'
  warnings.warn(msg)
Traceback (most recent call last):
  File "setup.py", line 456, in <module>
    **extra)
  File "c:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "c:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "c:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "c:\Python26\lib\site-packages\py2exe\build_exe.py", line 243, in run
    self._run()
  File "c:\Python26\lib\site-packages\py2exe\build_exe.py", line 248, in _run
    self.create_directories()
  File "c:\Python26\lib\site-packages\py2exe\build_exe.py", line 417, in
create_directories
    if self.distribution.zipfile is None:
AttributeError: hgdist instance has no attribute 'zipfile'

Py2exe includes a specific __init__ module that overrides the default
distutils Distribution class. The change done in c3a6ec304055 prevents this
trick to work.

----------
messages: 18121
nosy: pqu
priority: bug
status: unread
title: c3a6ec304055 breaks py2exe

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3116>
____________________________________________________


More information about the Mercurial-devel mailing list