예제 #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)
예제 #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)
예제 #3
0
파일: setup.py 프로젝트: dreamsxin/libesedb
    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)
예제 #4
0
파일: setup.py 프로젝트: Ramambahara/libbde
        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)
예제 #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))
예제 #6
0
파일: setup.py 프로젝트: michalumni/hiku
 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))
예제 #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()
예제 #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)
예제 #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)
예제 #10
0
파일: setup.py 프로젝트: pycurl/pycurl
        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)
예제 #11
0
 def run(self):
     self.run_command('build_ext')
     return _bdist_msi.run(self)
예제 #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)
예제 #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()
예제 #14
0
파일: setup.py 프로젝트: 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)
예제 #15
0
 def run(self):
     self.run_command('build_ext')
     return _bdist_msi.run(self)