Author termim
Recipients termim
Date 2010-01-05.19:03:24
SpamBayes Score 1.91666e-10
Marked as misclassified No
Message-id <1262718207.72.0.84290104112.issue7639@psf.upfronthosting.co.za>
In-reply-to
Content
When I try to build msi installer for my module that contains files with long names it crashes with the following traceback

C:\home\python\dist_msi_bug>python setup.py bdist_msi
running bdist_msi
running build
running build_scripts
installing to build\bdist.win32\msi
running install_scripts
running install_data
running install_egg_info
Removing build\bdist.win32\msi\Lib\site-packages\hello-0.1-py2.6.egg-info
Writing build\bdist.win32\msi\Lib\site-packages\hello-0.1-py2.6.egg-info
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    data_files = [(".", ["data.seq.one.dat", "data.seq.two.dat"])],
  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\distutils\command\bdist_msi.py", line 242, in run
    self.add_files()
  File "c:\python26\lib\distutils\command\bdist_msi.py", line 270, in add_files
    key = dir.add_file(file)
  File "c:\python26\lib\msilib\__init__.py", line 340, in add_file
    short = self.make_short(file)
  File "c:\python26\lib\msilib\__init__.py", line 299, in make_short
    assert file not in self.short_names
AssertionError


It seems that Directory.make_short fails to create unique short names in some cases. The test files are attached.
History
Date User Action Args
2010-01-05 19:03:27termimsetrecipients: + termim
2010-01-05 19:03:27termimsetmessageid: <1262718207.72.0.84290104112.issue7639@psf.upfronthosting.co.za>
2010-01-05 19:03:25termimlinkissue7639 messages
2010-01-05 19:03:24termimcreate