本文整理汇总了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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)