Exemplo n.º 1
0
 def run(self):
     # Use build.py to perform the sdist
     cmd = [sys.executable, '-u', 'build.py', 'sdist']
     cmd = ' '.join(cmd)
     runcmd(cmd)
     
     # Put the filename in dist_files in case the upload command is used.
     # On the other hand, PyPI's upload size limit is waaaaaaaaay too
     # small so it probably doesn't matter too much...
     sdist_file = opj(self.dist_dir, self.distribution.get_fullname()+'.tar.gz')
     self.distribution.dist_files.append(('sdist', '', sdist_file))
Exemplo n.º 2
0
 def run(self):
     # Use build.py to perform the sdist
     cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'sdist']
     cmd = ' '.join(cmd)
     runcmd(cmd)
     
     # Put the filename in dist_files in case the upload command is used.
     # On the other hand, PyPI's upload size limit is waaaaaaaaay too
     # small so it probably doesn't matter too much...
     sdist_file = opj(self.dist_dir, self.distribution.get_fullname()+'.tar.gz')
     self.distribution.dist_files.append(('sdist', '', sdist_file))
Exemplo n.º 3
0
 def run(self):        
     if not self.skip_build:
         # Run build.py to do the actual building of the extension modules
         msg('WARNING: Building this way assumes that all generated files have been \n'
             'generated already.  If that is not the case then use build.py directly \n'
             'to generate the source and perform the build stage.  You can use \n'
             '--skip-build with the bdist_* or install commands to avoid this \n'
             'message and the wxWidgets and Phoenix build steps in the future.\n')       
     
         # Use the same Python that is running this script.
         cmd = [sys.executable, '-u', 'build.py', 'build']
         cmd = ' '.join(cmd)
         runcmd(cmd)
     
     # Let distutils handle building up the package folder under the
     # build/lib folder like normal.
     orig_build.run(self)
Exemplo n.º 4
0
 def run(self):        
     if not self.skip_build:
         # Run build.py to do the actual building of the extension modules
         msg('WARNING: Building this way assumes that all generated files have been \n'
             'generated already.  If that is not the case then use build.py directly \n'
             'to generate the source and perform the build stage.  You can use \n'
             '--skip-build with the bdist_* or install commands to avoid this \n'
             'message and the wxWidgets and Phoenix build steps in the future.\n')       
     
         # Use the same Python that is running this script.
         cmd = ['"{}"'.format(sys.executable), '-u', 'build.py', 'build']
         cmd = ' '.join(cmd)
         runcmd(cmd)
     
     # Let distutils handle building up the package folder under the
     # build/lib folder like normal.
     orig_build.run(self)
Exemplo n.º 5
0
def changeWelcomeText(text, options):
    cfg = Config(noWxConfig=True)

    if options.release:
        welcomeText = """
            Welcome! This is the API reference documentation for the <b>{version}
            release</b> of wxPython Phoenix, built on {today}.
            """.format(version=cfg.VERSION, today=TODAY)
    else:
        revhash  = runcmd('git rev-parse --short HEAD', getOutput=True, echoCmd=False)
        welcomeText = """
            Welcome! This is the API documentation for the wxPython Phoenix
            <b>pre-release snapshot</b> build <b>{version}</b>, last updated {today}
            from git revision:
            <a href="https://github.com/wxWidgets/Phoenix/commit/{revhash}">{revhash}</a>.
            """.format(version=cfg.VERSION, today=TODAY, revhash=revhash)
    text = text.replace('!WELCOME!', welcomeText)
    return text
Exemplo n.º 6
0
 def run(self):
     # Use build.py to perform the sdist
     cmd = [sys.executable, '-u', 'build.py', 'sdist']
     cmd = ' '.join(cmd)
     runcmd(cmd)