[issue7639] bdist_msi fails on files with long names
Mikhail Terekhov
report at bugs.python.org
Tue Jan 5 20:03:27 CET 2010
New submission from Mikhail Terekhov <termim at gmail.com>:
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.
----------
components: Windows
files: dist_msi_bug.zip
messages: 97271
nosy: mmm77
severity: normal
status: open
title: bdist_msi fails on files with long names
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file15747/dist_msi_bug.zip
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7639>
_______________________________________
More information about the Python-bugs-list
mailing list