Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
 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
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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)]
Exemple #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
 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
     ]
 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
Exemple #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
Exemple #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)