本文整理汇总了Python中setuptools.command.build_py.build_py.find_package_modules函数的典型用法代码示例。如果您正苦于以下问题:Python find_package_modules函数的具体用法?Python find_package_modules怎么用?Python find_package_modules使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了find_package_modules函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: find_package_modules
def find_package_modules(self, package, package_dir):
modules = build_py.find_package_modules(self, package, package_dir)
# Find build_src generated *.py files.
build_src = self.get_finalized_command('build_src')
modules += build_src.py_modules_dict.get(package, [])
return modules
开发者ID:enthought,项目名称:enable,代码行数:8,代码来源:setup.py
示例2: find_package_modules
def find_package_modules(self, package, package_dir):
modules = _build_py.find_package_modules(self, package, package_dir)
try:
modules.remove(("wendelin", "wendelin", "wendelin.py"))
modules.remove(("wendelin", "setup", "setup.py"))
except ValueError:
pass # was not there
return modules
开发者ID:Nexedi,项目名称:wendelin.core,代码行数:9,代码来源:setup.py
示例3: find_package_modules
def find_package_modules(self, package, package_dir):
# distutils uses old-style classes, so no super
modules = build_py.find_package_modules(self, package, package_dir)
if sys.version_info < (3, 4):
modules = [m for m in modules if not m[1].endswith('asyncio')]
if sys.version_info < (3, 5):
modules = [m for m in modules if not m[1].endswith('py35')]
if sys.version_info >= (3, 7):
modules = [m for m in modules if not m[1].endswith('trollius')]
return modules
开发者ID:ska-sa,项目名称:spead2,代码行数:10,代码来源:setup.py
示例4: find_package_modules
def find_package_modules(self, package, package_dir):
modules = _build_py.find_package_modules(self, package, package_dir)
yapps_files = glob.glob(os.path.join(package_dir, "*.g"))
for f in yapps_files:
py_f = os.path.splitext(f)[0] + ".py"
self.yapps[py_f] = f
module = os.path.splitext(os.path.basename(f))[0]
mdef = (package, module, py_f)
if mdef not in modules:
modules.append(mdef)
return modules
开发者ID:pombredanne,项目名称:py-dom-xpath,代码行数:13,代码来源:setup.py
示例5: find_package_modules
def find_package_modules (self, package, package_dir):
"""Extend build_by (not used for now)"""
result = build_py.find_package_modules(self, package, package_dir)
return result
开发者ID:JackPerdue,项目名称:easybuild-framework,代码行数:4,代码来源:shared_setup.py
示例6: find_package_modules
def find_package_modules(self, package, package_dir):
modules = st_build_py.find_package_modules(
self, package, package_dir)
return list(filter(_is_included_module, modules))
开发者ID:DemOneEh,项目名称:shoop,代码行数:4,代码来源:commands.py
示例7: find_package_modules
def find_package_modules(self, package, package_dir):
modules = _build_py.find_package_modules(self, package, package_dir)
if package == PROJECT:
modules.append((PROJECT, '_version', 'version.py'))
return modules
开发者ID:chiahaoliu,项目名称:pyFAI,代码行数:5,代码来源:setup.py
示例8: find_package_modules
def find_package_modules(self, package, package_dir):
modules = build_py.find_package_modules(self, package, package_dir)
modules = list(filter(lambda m: _not_async(m[-1]), modules))
return modules
开发者ID:salejovg,项目名称:telepot,代码行数:4,代码来源:setup.py
示例9: find_package_modules
def find_package_modules(self, package, package_dir):
modules = [
module for module
in build_py.find_package_modules(self, package, package_dir)
if ".".join([module[0], module[1]]) not in notPortedModules]
return modules
开发者ID:esabelhaus,项目名称:secret-octo-dubstep,代码行数:6,代码来源:_setup.py
注:本文中的setuptools.command.build_py.build_py.find_package_modules函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论