当前位置: 首页>>代码示例>>Python>>正文


Python egg_info.run方法代码示例

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


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

示例1: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
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:Frank-qlu,项目名称:recruit,代码行数:22,代码来源:egg_info.py

示例2: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
def run(self):
        if self.distribution.has_c_libraries():
            build_clib = self.get_finalized_command("build_clib")
            self.include_dirs.append(
                os.path.join(build_clib.build_clib, "include"),
            )
            self.include_dirs.extend(build_clib.build_flags['include_dirs'])

            self.library_dirs.append(
                os.path.join(build_clib.build_clib, "lib"),
            )
            self.library_dirs.extend(build_clib.build_flags['library_dirs'])

            self.define = build_clib.build_flags['define']

        return _build_ext.run(self) 
开发者ID:ludbb,项目名称:secp256k1-py,代码行数:18,代码来源:setup.py

示例3: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
def run(self):
        egg_info_path = os.path.join(
            TESTS_ROOT,
            '%s.egg-info' % TEST_PACKAGE_NAME
        )
        if not os.path.exists(egg_info_path):
            os.mkdir(egg_info_path)
        shutil.copy2(
            os.path.join(TESTS_ROOT, 'LICENSE'),
            os.path.join(egg_info_path, 'LICENSE')
        )
        egg_info.run(self) 
开发者ID:wbond,项目名称:oscrypto,代码行数:14,代码来源:setup.py

示例4: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
def run(self):
        egg_info_path = os.path.join(
            PACKAGE_ROOT,
            '%s.egg-info' % PACKAGE_NAME
        )
        if not os.path.exists(egg_info_path):
            os.mkdir(egg_info_path)
        shutil.copy2(
            os.path.join(PACKAGE_ROOT, 'LICENSE'),
            os.path.join(egg_info_path, 'LICENSE')
        )
        egg_info.run(self) 
开发者ID:wbond,项目名称:oscrypto,代码行数:14,代码来源:setup.py

示例5: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
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, 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:ryfeus,项目名称:lambda-packs,代码行数:14,代码来源:egg_info.py

示例6: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
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:abhisuri97,项目名称:auto-alt-text-lambda-api,代码行数:14,代码来源:egg_info.py

示例7: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
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:ktraunmueller,项目名称:Computable,代码行数:8,代码来源:egg_info.py

示例8: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
def run(self):
        # Ensure library has been downloaded (sdist might have been skipped)
        download_library(self)
        _egg_info.run(self) 
开发者ID:bitaps-com,项目名称:pybtc,代码行数:6,代码来源:setup_tools.py

示例9: run

# 需要导入模块: from setuptools.command.egg_info import egg_info [as 别名]
# 或者: from setuptools.command.egg_info.egg_info import run [as 别名]
def run(self):
        cp_data()
        DistutilsInstall.run(self) 
开发者ID:GOAL-Robots,项目名称:REALCompetitionStartingKit,代码行数:5,代码来源:setup.py


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