當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。