Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
        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)
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
        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)
Ejemplo n.º 5
0
 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))
Ejemplo n.º 6
0
 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))
Ejemplo n.º 7
0
 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()
Ejemplo n.º 8
0
        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)
Ejemplo n.º 9
0
        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)
Ejemplo n.º 10
0
        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)
Ejemplo n.º 11
0
 def run(self):
     self.run_command('build_ext')
     return _bdist_msi.run(self)
Ejemplo n.º 12
0
 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)
Ejemplo n.º 13
0
 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()
Ejemplo n.º 14
0
Archivo: setup.py Proyecto: koehlma/uv
 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)
Ejemplo n.º 15
0
 def run(self):
     self.run_command('build_ext')
     return _bdist_msi.run(self)