def run(self): """Builds an MSI.""" # Command bdist_msi does not support the library version, neither a date # as a version but if we suffix it with .1 everything is fine. self.distribution.metadata.version += '.1' bdist_msi.run(self)
def run(self): """Builds an MSI.""" # bdist_msi does not support the library version so we add ".1" # as a work around. self.distribution.metadata.version = "{0:s}.1".format( self.distribution.metadata.version) bdist_msi.run(self)
def run(self): bdist_msi.run(self) if hasattr(self.distribution, 'dist_files'): command, pyversion, filename = ( self.distribution.dist_files.pop()) filename = self.get_installer_filename(filename) self.distribution.dist_files.append( (command, pyversion, filename))
def run(self): bdist_msi.run(self) add_data( self.db, 'Shortcut', [('DesktopShortcut', 'DesktopFolder', 'idlespork', 'Scripts', r'[TARGETDIR]\pythonw.exe', r'"[Scripts]\idlespork"', None, None, None, None, None, None)]) self.db.Commit()
def run(self): """Builds an MSI.""" # Make a deepcopy of distribution so the following version changes # only apply to bdist_msi. self.distribution = copy.deepcopy(self.distribution) # bdist_msi does not support the library version so we add ".1" # as a work around. self.distribution.metadata.version += ".1" bdist_msi.run(self)
def run(self): def monkey_get_version(self): """ monkey patch replacement for metadata.get_version() that returns MSI compatible version string for bdist_msi """ # get filename of the calling function if inspect.stack()[1][1].endswith('bdist_msi.py'): # strip revision from version (if any), e.g. 11.0.0-r31546 match = re.match(r'(\d+\.\d+\.\d+)', self.version) assert match return match.group(1) else: return self.version # monkeypatching get_version() call for DistributionMetadata self.distribution.metadata.get_version = \ types.MethodType(monkey_get_version, self.distribution.metadata) bdist_msi.run(self)
def run(self): self.run_command('build_ext') return _bdist_msi.run(self)
def run(self): import re cleaned = re.search(msi_clean_regex, self.distribution.metadata.version) self.distribution.metadata.version = cleaned.group(0) bdist_msi.run(self)
def run(self): bdist_msi.run(self) add_data(self.db, 'Shortcut', [('DesktopShortcut', 'DesktopFolder', 'idlespork', 'Scripts', r'[TARGETDIR]\pythonw.exe', r'"[Scripts]\idlespork"', None, None, None, None, None, None)]) self.db.Commit()