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