Пример #1
0
 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
Пример #2
0
 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]]) in dist3.modulesToInstall
         or ".".join([module[0], module[1]]) in dist3.testDataFiles
     ]
     return modules
Пример #3
0
 def find_package_modules(self, package: str,
                          package_dir: str) -> List[Tuple[str, str, str]]:
     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
Пример #4
0
    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
Пример #5
0
    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
Пример #6
0
    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
Пример #7
0
 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
Пример #8
0
 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
Пример #9
0
    def find_package_modules(self, package, package_dir, *args, **kwargs):
        modules = build_py.find_package_modules(self, package, package_dir,
                                                *args, **kwargs)

        # Exclude certain modules
        retval = []
        for item in modules:
            pkg, module = item[:2]
            retval.append(item)
        return retval
Пример #10
0
    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
Пример #11
0
    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
Пример #12
0
 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
Пример #13
0
 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))
Пример #14
0
 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))
Пример #15
0
 def find_package_modules(self, package, package_dir):
     modules = build_py_orig.find_package_modules(self, package, package_dir)
     return list(filter(self._filter_modules, modules))
Пример #16
0
 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
Пример #17
0
 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
Пример #18
0
 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
Пример #19
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     if "." not in package:
         modules.append((package, "_version", "_version.py"))
     return modules
Пример #20
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     return [(pkg, mod, f) for (pkg, mod, f) in modules if not any(
         fnmatch.fnmatchcase(f, pat=pattern) for pattern in file_exclude)]
Пример #21
0
 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
Пример #22
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     return [
         (pkg, mod, file, ) for (pkg, mod, file, ) in modules
         if file not in self.excluded
     ]
Пример #23
0
 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
Пример #24
0
 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
Пример #25
0
 def find_package_modules(self, package, package_dir):
     modules = _build_py.find_package_modules(self, package, package_dir)
     return self._filter_modules(modules)