Opened 16 years ago
Closed 9 years ago
#11236 closed Bug (wontfix)
Can't build a windows msi installer
Reported by: | mr_pink | Owned by: | nobody |
---|---|---|---|
Component: | Packaging | Version: | dev |
Severity: | Normal | Keywords: | setup msi |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using "python setup.py bdist_msi" it should be possible to build a django msi installer. Whilst I doubt this is high on the list of priorities it seems like quite an easy fix.
I discovered two issues, the first is the version numbering - it is rejected unless it matches a certain pattern. So 1.1 beta should be, for example, 1.1b1.
Secondly contrib.gis causes a problem with the code in msilib.py
as city.$DB_BACKEND.sql all get shortened to city.sql, and there is an assertion that names must be unique. Therefore these files would need renaming.
I suspect that the setup.py hack that looks for 'bdist_wininst' to include data files might have to be expanded to look for bdist_msi too.
Tested using python2.5
Change History (9)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:3 by , 13 years ago
Easy pickings: | unset |
---|---|
UI/UX: | unset |
comment:4 by , 13 years ago
I just uploaded a patch to #17491 to fix the format of the version number. If that patch is committed, this ticket will probably be fixed.
comment:6 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Hum, python.exe setup.py bdist_msi
still returns an error:
Writing build\bdist.win32\msi\Lib\site-packages\Django-1.4.0a1-py2.7.egg-info Traceback (most recent call last): File "setup.py", line 98, in <module> 'Topic :: Software Development :: Libraries :: Python Modules', File "C:\Python27\lib\distutils\core.py", line 152, in setup dist.run_commands() File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "C:\Python27\lib\distutils\dist.py", line 972, in run_command cmd_obj.run() File "C:\Python27\lib\distutils\command\bdist_msi.py", line 255, in run self.add_files() File "C:\Python27\lib\distutils\command\bdist_msi.py", line 318, in add_files db.Commit() _msi.MSIError: 1: 2263 2: _Tables 3: -2147287032
comment:7 by , 12 years ago
Status: | reopened → new |
---|
comment:8 by , 11 years ago
Component: | Uncategorized → Packaging |
---|
comment:9 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I'm going to close this ticket given a lack of motivation of why we need an MSI installer and the fact that we likely don't have anyone interested in debugging that error. If someone is motivated and can fix it, feel free to reopen.
The issue with contrib.gis was somehow resolved since this ticket was filed. The issue with the version number still exists.
Distutils' docs say: