Message133035
Metadata can be automatically figured out using regexp matching like ^\d+(\.\d+){2,3}, but for explicit handling there should be should some callback or msi-specific version property in metadata. In the end it is pretty logical if binary distribution process can be configured using distribution specific (bdist_* specific) properties.
In the meanwhile here is the workaround:
{{{
from distutils.command.bdist_msi import bdist_msi
class bdist_msi_version_hack(bdist_msi):
""" bdist_msi requires version to be in x.x.x format
because it is embedded into MSI
"""
def run(self):
# strip suffix from version, i.e. from 11.0.0+r3443
saved = self.distribution.metadata.version
self.distribution.metadata.version = saved.split('+')[0]
bdist_msi.run(self)
saved_version = self.distribution.metadata.version
setup(
...
cmdclass={'bdist_msi': bdist_msi_version_hack},
)
}}} |
|
Date |
User |
Action |
Args |
2011-04-05 14:45:40 | techtonik | set | recipients:
+ techtonik, loewis, tim.golden, tarek, cdavid, eric.araujo, rogerbinns |
2011-04-05 14:45:40 | techtonik | set | messageid: <1302014740.24.0.294916493261.issue6040@psf.upfronthosting.co.za> |
2011-04-05 14:45:39 | techtonik | link | issue6040 messages |
2011-04-05 14:45:39 | techtonik | create | |
|