• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python build_py.run函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中setuptools.command.build_py.build_py.run函数的典型用法代码示例。如果您正苦于以下问题:Python run函数的具体用法?Python run怎么用?Python run使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了run函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: run

 def run(self):
     if not check_dependencies_once():
         return
     # Add software that requires Numpy to be installed.
     if is_Numpy_installed():
         self.packages.extend(NUMPY_PACKAGES)
     build_py.run(self)
开发者ID:chapmanb,项目名称:biopython,代码行数:7,代码来源:setup.py


示例2: run

    def run(self):
        build_py.run(self)

        if self.dry_run:
            return

        self.generate_files(self.here, self.build_lib)
开发者ID:nphilipp,项目名称:tw2.fontawesome,代码行数:7,代码来源:setup.py


示例3: run

 def run(self):
     compile_gemtools()
     compile_gemtools_cnv()
     parent_dir = os.path.split(os.path.abspath(__file__))[0]
     target_dir = "%s/%s" % (parent_dir, "python/gem/gembinaries")
     _install_bundle(target_dir, base=parent_dir + "/downloads")
     _build_py.run(self)
开发者ID:MarcosFernandez,项目名称:gemtools-cnv,代码行数:7,代码来源:setup.py


示例4: run

 def run(self):
     try:
         # Create build date file.  This is used to determine if the java jar and python code are
         # compatible with each other
         f = open('pyboof/build_date.txt', 'w')
         f.write(str(int(round(time.time() * 1000))))
         f.close()
         # See if javac is available for compiling the java code
         if check_for_command("javac"):
             if call(["bash", "gradlew", "allJar"]) != 0:
                 print "Gradle build failed."
                 exit(1)
         else:
             print "javac isn't installed on your systems.  exiting now"
             # TODO Should download instead if possible?
             exit(1)
     except Exception as e:
         print "Exception message:"
         print str(e)
         print e.message
         print
         if not os.path.isfile('python/pyboof/PyBoof-all.jar'):
             print "Gradle build failed AND there is no PyBoof-all.jar"
             print ""
             print "Did you run build as a regular user first?"
             print "    ./setup.py build"
             print "Is Gradle and Java installed?  Test by typing the following:"
             print "    gradle allJar"
             exit(1)
     build_py.run(self)
开发者ID:lessthanoptimal,项目名称:PyBoof,代码行数:30,代码来源:setup.py


示例5: run

    def run(self):
        import subprocess
        import configparser

        build_py.run(self)
        proc = subprocess.Popen('git rev-parse --short HEAD',
                                stdout=subprocess.PIPE,
                                stderr=subprocess.PIPE,
                                shell=True)
        repo_commit, _ = proc.communicate()
        # Fix for python 3
        if PY3:
            repo_commit = repo_commit.decode()

        # We write the installation commit even if it's empty
        if PY3:
            cfg_parser = configparser.RawConfigParser()
        else:
            cfg_parser = configparser.ConfigParser()
        cfg_parser.read(pjoin('nipype', 'COMMIT_INFO.txt'))
        cfg_parser.set('commit hash', 'install_hash', repo_commit.strip())
        out_pth = pjoin(self.build_lib, 'nipype', 'COMMIT_INFO.txt')
        if PY3:
            cfg_parser.write(open(out_pth, 'wt'))
        else:
            cfg_parser.write(open(out_pth, 'wb'))
开发者ID:ashgillman,项目名称:nipype,代码行数:26,代码来源:setup.py


示例6: run

    def run(self):
        qsimDll = Path(QSHARP_PACKAGE_ROOT / "Microsoft.Quantum.Simulation.Simulators.dll")
        if not qsimDll.exists():
            self.run_command('nuget_copy')

        self.write_version()
        build_py.run(self)
开发者ID:caidongyun,项目名称:Quantum,代码行数:7,代码来源:setup.py


示例7: run

    def run(self):
        if not self.dry_run:
            target_dir = os.path.join(self.build_lib, MODEL_TARGET_DIR)
            self.mkpath(target_dir)
            build_stan_model(target_dir)

        build_py.run(self)
开发者ID:HuXufeng,项目名称:prophet,代码行数:7,代码来源:setup.py


示例8: run

    def run(self, *args):
        BuildCommand.run(self, *args)

        for lang in langs:
            mkmo(lang)

        merge_i18n()
开发者ID:davesteele,项目名称:splitcpy,代码行数:7,代码来源:setup.py


示例9: run

    def run(self):
        if CAN_COPY:
            self.run_command('submodule_copy')

        if THRIFT is not None:
            self.run_command('gen_thrift')
        _build_py.run(self)
开发者ID:agargiulo,项目名称:sparts,代码行数:7,代码来源:setup.py


示例10: run

  def run(self):
    # Compile the protobufs.
    base_dir = os.getcwd()
    os.chdir("proto")
    subprocess.check_call(["make"], shell=True)
    os.chdir(base_dir)

    build_py.run(self)
开发者ID:andrewseidl,项目名称:grr,代码行数:8,代码来源:setup.py


示例11: run

 def run(self):
     """Generate the parsetab file so that we can install that too before
     calling the regular installer in the super class"""
     from pyoracc import _generate_parsetab
     _generate_parsetab()
     # Can't use super because build_py is an old style class in the Maven
     # Jython plugin setuptools version 0.6...
     build_py.run(self)
开发者ID:oracc,项目名称:pyoracc,代码行数:8,代码来源:setup.py


示例12: run

    def run(self):

        # distutils uses old-style classes, so no super()
        build_py.run(self)

        # Use a fresh version of the python file
        copyfile(VERSION_METADATA_FILE, os.path.join(self.build_lib, VERSION_METADATA_FILE))
        add_git_metadata(self.build_lib)
开发者ID:Wirecloud,项目名称:wirecloud,代码行数:8,代码来源:setup.py


示例13: run

    def run(self):
        if not self.dry_run:
            target_dir = os.path.join(self.build_lib, 'ctplot/static')
            self.mkpath(os.path.join(target_dir, 'de'))
            self.mkpath(os.path.join(target_dir, 'en'))
            generate_static_files(target_dir)

        build_py.run(self)
开发者ID:CosmicLabDESY,项目名称:CosmicAtWeb,代码行数:8,代码来源:setup.py


示例14: run

 def run(self):
     try:
         assert(0 == subprocess.call(['make', 'bdist-prep'], cwd=here))
     except:
         print "Error building package. Try running 'make'."
         exit(1)
     else:
         build_py.run(self)
开发者ID:AaronZhangL,项目名称:Mailpile,代码行数:8,代码来源:setup.py


示例15: run

 def run(self):
     if not self.dry_run:
         _build_requirements()
         lib_war = os.path.join(self.build_lib, 'weblabdeusto_data', 'war')
         if os.path.exists(lib_war):
             shutil.rmtree(lib_war)
         shutil.copytree(os.path.join('weblabdeusto_data', 'war'), lib_war)
     _build_py.run(self)
开发者ID:arobles1980,项目名称:weblabdeusto,代码行数:8,代码来源:setup.py


示例16: run

    def run(self):
        import xtuml
        from bridgepoint import oal

        l = xtuml.ModelLoader()
        l.input('', name='<empty string>')
        l.build_metamodel()
        oal.parse('')
        build_py.run(self)
开发者ID:cortlandstarrett,项目名称:pyxtuml,代码行数:9,代码来源:setup.py


示例17: run

 def run(self):
     try:
         # Use the management command to compile messages
         # django 1.9 does not need the chdir anymore
         os.chdir('registration')
         call_command("compilemessages")
         os.chdir('..')
     except ImportError:
         pass
     _build_py.run(self)
开发者ID:lucasdavila86,项目名称:django-registration,代码行数:10,代码来源:setup.py


示例18: run

    def run(self):
        """ Overwriting the existing command.
        """
        os.chdir('respy')

        os.system('./waf distclean; ./waf configure build')

        os.chdir('../')

        build_py.run(self)
开发者ID:restudToolbox,项目名称:package,代码行数:10,代码来源:setup.py


示例19: run

 def run(self):
     if not self.dry_run:
         import os.path
         from pygments.formatters import HtmlFormatter
         formatter = HtmlFormatter(linenos=True, cssclass='highlight')
         target_dir = os.path.join(self.build_lib, 'pastetron/static')
         self.mkpath(target_dir)
         with open(os.path.join(target_dir, 'pygments.css'), 'w') as fh:
             fh.write(formatter.get_style_defs('.highlight'))
     build_py.run(self)
开发者ID:kgaughan,项目名称:pastetron,代码行数:10,代码来源:setup.py


示例20: run

 def run(self):
     import GenerateSwoop
     dtd = open("Swoop/eagleDTD.py", "w")
     os.system("patch Swoop/eagle-7.2.0.dtd Swoop/eagle.dtd.diff -o Swoop/eagle-swoop.dtd")
     dtd.write('DTD="""')
     dtd.write(open("Swoop/eagle-swoop.dtd").read())
     dtd.write('"""')
     dtd.close()
     GenerateSwoop.main("Swoop/Swoop.py")
     build_py.run(self)
开发者ID:NVSL,项目名称:Swoop,代码行数:10,代码来源:setup.py



注:本文中的setuptools.command.build_py.build_py.run函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python develop.install_for_development函数代码示例发布时间:2022-05-27
下一篇:
Python build_py.find_package_modules函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap