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

Python egg_info.run函数代码示例

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

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



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

示例1: run

    def run(self):
        """Build the egg information."""
        if "sdist" in sys.argv or "bdist_egg" in sys.argv or "bdist_wheel" in sys.argv or "install" in sys.argv:
            self.run_command("build_media")
            self.run_command("build_i18n")

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


示例2: run

 def run(self):
     if "build" in self.distribution.command_obj:
         build_command = self.distribution.command_obj["build"]
         self.egg_base = build_command.build_base
         self.egg_info = os.path.join(self.egg_base,
                                      os.path.basename(self.egg_info))
     egg_info.run(self)
开发者ID:cmusatyalab,项目名称:opendiamond,代码行数:7,代码来源:setup.py


示例3: run

    def run(self):
        """Build the egg information."""
        if is_packaging:
            self.run_command('build_media')
            self.run_command('build_i18n')

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


示例4: run

    def run(self):
        if ('sdist' in sys.argv or
            'bdist_egg' in sys.argv or
            'install' in sys.argv):
            self.run_command('build_media')

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


示例5: run

 def run(self):
     self.discover_url()
     _egg_info.run(self)
     if self.revision:
         self.write_revision(self.revision)
         self.write_all_revisions()
     if self.include_test_options:
         self.write_test_options()
开发者ID:intiocean,项目名称:pkglib,代码行数:8,代码来源:egg_info.py


示例6: run

    def run(self):
        # Conditionally build the media files if there's a settings_local
        # file. If there isn't one, we assume this is a new dev tree, in which
        # prepare-dev hasn't been run yet.
        #
        # This is necessary since setup.py develop must be run before
        # prepare-dev.py, but develop will call egg_info.
        if os.path.exists('settings_local.py'):
            self.run_command('build_media')

        egg_info.run(self)
开发者ID:aineko,项目名称:reviewboard,代码行数:11,代码来源:setup.py


示例7: run

    def run(self):
        if 'sdist' in sys.argv:
            import warnings
            warnings.warn("`build_src` is being run, this may lead to missing "
                          "files in your sdist!  See numpy issue gh-7127 for "
                          "details", UserWarning)

        # We need to ensure that build_src has been executed in order to give
        # setuptools' egg_info command real filenames instead of functions which
        # generate files.
        self.run_command("build_src")
        _egg_info.run(self)
开发者ID:8ballbb,项目名称:ProjectRothar,代码行数:12,代码来源:egg_info.py


示例8: run

    def run(self):
        if 'sdist' in sys.argv:
            import warnings
            import textwrap
            msg = textwrap.dedent("""
                `build_src` is being run, this may lead to missing
                files in your sdist!  You want to use distutils.sdist
                instead of the setuptools version:

                    from distutils.command.sdist import sdist
                    cmdclass={'sdist': sdist}"

                See numpy's setup.py or gh-7131 for details.""")
            warnings.warn(msg, UserWarning, stacklevel=2)

        # We need to ensure that build_src has been executed in order to give
        # setuptools' egg_info command real filenames instead of functions which
        # generate files.
        self.run_command("build_src")
        _egg_info.run(self)
开发者ID:AlerzDev,项目名称:Brazo-Proyecto-Final,代码行数:20,代码来源:egg_info.py


示例9: run

    def run(self):
        cmd = ['python', 'blond/compile.py']
        if self.parallel:
            cmd.append('-p')
        if self.boost:
            cmd += ['-b', self.boost]
        if self.compiler:
            cmd += ['-c', self.compiler]

        subprocess.call(cmd)
        # self.run_command('compile')
        return _egg_info.run(self)
开发者ID:dquartul,项目名称:BLonD,代码行数:12,代码来源:setup.py


示例10: run

    def run(self):
        from setuptools.command.egg_info import manifest_maker
        from os import listdir

        which_template = "MANIFEST.source.in"

        dist = self.distribution
        old_values = dist.ext_modules, dist.ext_package, dist.packages, dist.package_dir
        if len(listdir(package_dir)) != 0 and getattr(self.distribution, "running_binary", True):
            which_template = "MANIFEST.binary.in"
        else:
            dist.ext_modules, dist.ext_package = None, None
            dist.packages, dist.package_dir = None, None

        try:
            old_template = manifest_maker.template
            manifest_maker.template = which_template
            dEggInfo.run(self)
        finally:
            manifest_maker.template = old_template
            dist.ext_modules, dist.ext_package = old_values[:2]
            dist.packages, dist.package_dir = old_values[2:]
开发者ID:pylada,项目名称:pylada-light,代码行数:22,代码来源:setup.py


示例11: run

    def run(self):
        from setuptools.command.egg_info import manifest_maker
        from os import listdir
        which_template = 'MANIFEST.source.in'

        dist = self.distribution
        old_values = dist.ext_modules, dist.ext_package, \
            dist.packages, dist.package_dir
        condition = len(listdir(package_dir)) != 0 \
            and getattr(self.distribution, 'running_binary', False)
        if condition:
            which_template = 'MANIFEST.binary.in'
        else:
            dist.ext_modules, dist.ext_package = None, None
            dist.packages, dist.package_dir = None, None

        try:
            old_template = manifest_maker.template
            manifest_maker.template = which_template
            dEggInfo.run(self)
        finally:
            manifest_maker.template = old_template
            dist.ext_modules, dist.ext_package = old_values[:2]
            dist.packages, dist.package_dir = old_values[2:]
开发者ID:UCL,项目名称:purify,代码行数:24,代码来源:setup.py


示例12: run

    def run(self):
        if "sdist" in sys.argv or "bdist_egg" in sys.argv or "install" in sys.argv:
            self.run_command("build_media")

        egg_info.run(self)
开发者ID:stbutler11,项目名称:reviewboard,代码行数:5,代码来源:setup.py


示例13: run

 def run(self):
     self.run_command("js")
     return egg_info.run(self)
开发者ID:hohn,项目名称:bqplot,代码行数:3,代码来源:setup.py


示例14: run

 def run(self):
     orig_egg_info.run(self)
     shutil.copy("b3.egg-info/PKG-INFO", "b3/PKG-INFO")
开发者ID:Runstrem,项目名称:big-brother-bot,代码行数:3,代码来源:setup.py


示例15: run

 def run(self):
     # We need to ensure that build_src has been executed in order to give
     # setuptools' egg_info command real filenames instead of functions which
     # generate files.
     self.run_command("build_src")
     _egg_info.run(self)
开发者ID:glimmercn,项目名称:numpy,代码行数:6,代码来源:egg_info.py


示例16: run

    def run(self):
        # Ensure library has been downloaded (sdist might have been skipped)
        download_library(self)

        _egg_info.run(self)
开发者ID:ulope,项目名称:secp256k1-py,代码行数:5,代码来源:setup.py


示例17: run

 def run(self):
     self.run_command('build_media')
     egg_info.run(self)
开发者ID:macndesign,项目名称:reviewboard,代码行数:3,代码来源:setup.py


示例18: run

 def run(self):
     git_checkout_submodules()
     egg_info.run(self)
开发者ID:bohyn,项目名称:django-elfinder2,代码行数:3,代码来源:setup.py


示例19: run

    def run(self):
        if (sys.argv[0] in ('sdist', 'bdist_egg', 'install') and
            os.path.exists('settings_local.py')):
            self.run_command('build_media')

        egg_info.run(self)
开发者ID:MechanisM,项目名称:reviewboard,代码行数:6,代码来源:setup.py


示例20: run

 def run(self):
     egg_info.run(self)
     setup_pil_stub('egg_info')
开发者ID:mikeboers,项目名称:PillowCase,代码行数:3,代码来源:setup.py



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python install.finalize_options函数代码示例发布时间:2022-05-27
下一篇:
Python egg_info.FileList类代码示例发布时间: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