This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients cdavid, eric.araujo, loewis, rogerbinns, tarek, techtonik, tim.golden
Date 2011-04-05.14:45:39
SpamBayes Score 2.732315e-05
Marked as misclassified No
Message-id <1302014740.24.0.294916493261.issue6040@psf.upfronthosting.co.za>
In-reply-to
Content
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},
)
}}}
History
Date User Action Args
2011-04-05 14:45:40techtoniksetrecipients: + techtonik, loewis, tim.golden, tarek, cdavid, eric.araujo, rogerbinns
2011-04-05 14:45:40techtoniksetmessageid: <1302014740.24.0.294916493261.issue6040@psf.upfronthosting.co.za>
2011-04-05 14:45:39techtoniklinkissue6040 messages
2011-04-05 14:45:39techtonikcreate