예제 #1
0
파일: setup.py 프로젝트: kalkin/nanolp
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     if _PY23 == 3:
         modules = [m for m in modules if 'lpcompat2' not in m[1]]
     else:
         modules = [m for m in modules if 'lpcompat3' not in m[1]]
     return modules
예제 #2
0
 def find_package_modules(self, package, package_dir):
     rv = build_py.find_package_modules(self, package, package_dir)
     if self.nostdownloader:
         BuildPyEx._remove_module(rv, "stdownloader")
     if self.nofinddaemon:
         BuildPyEx._remove_module(rv, "finddaemondialog")
     return rv
예제 #3
0
파일: setup.py 프로젝트: kalkin/nanolp
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     if _PY23 == 3:
         modules = [m for m in modules if 'lpcompat2' not in m[1]]
     else:
         modules = [m for m in modules if 'lpcompat3' not in m[1]]
     return modules
예제 #4
0
	def find_package_modules(self, package, package_dir):
		rv = build_py.find_package_modules(self, package, package_dir)
		if self.nostdownloader:
			BuildPyEx._remove_module(rv, "stdownloader")
		if self.nofinddaemon:
			BuildPyEx._remove_module(rv, "finddaemondialog")
		return rv
예제 #5
0
	def find_package_modules(self, package, package_dir):
		rv = build_py.find_package_modules(self, package, package_dir)
		if self.nostdownloader:
			for i in rv:
				if i[1] == "stdownloader":
					rv.remove(i)
					break
		return rv
예제 #6
0
    def find_package_modules(self, package, package_dir):
        modules = old_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
예제 #7
0
    def find_package_modules(self, package, package_dir):
        modules = build_py.find_package_modules(self, package, package_dir)
        yapps_module_files = glob(os.path.join(package_dir, "*.g"))

        for f in yapps_module_files:
            module = os.path.splitext(os.path.basename(f))[0]
            modules.append((package, module, f))
        return modules
예제 #8
0
    def find_package_modules(self, package, package_dir):
        modules = old_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
예제 #9
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     for package, module, filename in modules:
         if module not in ('__init__', ):
             # We only want __init__ python files
             # All others will be built as extensions
             continue
         yield package, module, filename
예제 #10
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
예제 #11
0
 def find_package_modules(self, package, package_dir):
   exclude = (
       "*test*",
       "google/protobuf/internal/*_pb2.py",
       "google/protobuf/internal/_parameterized.py",
       "google/protobuf/pyext/python_pb2.py",
   )
   modules = _build_py.find_package_modules(self, package, package_dir)
   return [(pkg, mod, fil) for (pkg, mod, fil) in modules
           if not any(fnmatch.fnmatchcase(fil, pat=pat) for pat in exclude)]
예제 #12
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
예제 #13
0
파일: setup.py 프로젝트: intellimath/pyaxon
 def find_package_modules(self, package, package_dir):
     modules = _build_py.find_package_modules(self, package, package_dir)
     py_ext_modules = []
     for ext in self.distribution.ext_modules:
         for src in ext.sources:
             if src.endswith('.py'):
                 py_ext_modules.append(src)
     if py_ext_modules:
         modules = [m for m in modules if m[2] not in py_ext_modules]
     return modules
예제 #14
0
파일: setup.py 프로젝트: tailhook/pyzza
 def find_package_modules(self, package, package_dir):
     res = _build_py.find_package_modules(self, package, package_dir)
     if package == 'pyzza':
         if sys.version_info < (2, 7):
             res.append((package, 'collections',
                 os.path.join(os.path.dirname(package_dir),
                     'backport', 'collections.py')))
         badio = ('pyzza', 'io', os.path.join('pyzza', 'io.py'))
         if badio in res:
             res.remove(badio)
             res.append(('pyzza', 'io', 'backport/io.py'))
     return res
예제 #15
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     for package, module, filename in modules:
         if self.distribution.develop_mode is False and package == 'ldap3.utils' and module in ('asn1', 'conv'):
             # We have issues when cython compiling asn1, include it as a python module
             yield package, module, filename
             continue
         if self.distribution.develop_mode is False and module not in ('__init__',):
             # We only want __init__ and _version python files
             # All others will be built as extensions
             continue
         yield package, module, filename
예제 #16
0
 def find_package_modules(self, package, package_dir):
     modules = build_py.find_package_modules(self, package, package_dir)
     for package, module, filename in modules:
         if self.distribution.develop_mode is False:
             if package == 'pyasn1.codec.ber' and module in ('encoder',):
                 # We have issues when cython compiling asn1, include it as a python module
                 yield package, module, filename
                 continue
         if self.distribution.develop_mode is False and module not in ('__init__',):
             # We only want __init__ and _version python files
             # All others will be built as extensions
             continue
         yield package, module, filename
예제 #17
0
    def find_package_modules(self, package, package_dir):
        """
        Lookup modules to be built before install. Because we
        only use a single source distribution for Python 2 and 3,
        we want to avoid specific modules to be built and deployed
        on Python 2.x. By overriding this method, we filter out
        those modules before distutils process them.

        This is in reference to issue #123.
        """
        modules = build_py.find_package_modules(self, package, package_dir)
        amended_modules = []
        for (package_, module, module_file) in modules:
            if sys.version_info < (3,):
                if module in ['async_websocket', 'tulipserver']:
                    continue
            amended_modules.append((package_, module, module_file))
        return amended_modules
예제 #18
0
    def find_package_modules(self, package, package_dir):
        """
        Lookup modules to be built before install. Because we
        only use a single source distribution for Python 2 and 3,
        we want to avoid specific modules to be built and deployed
        on Python 2.x. By overriding this method, we filter out
        those modules before distutils process them.

        This is in reference to issue #123.
        """
        modules = build_py.find_package_modules(self, package, package_dir)
        amended_modules = []
        for (package_, module, module_file) in modules:
            if sys.version_info < (3, ):
                if module in ['async_websocket', 'tulipserver']:
                    continue
            amended_modules.append((package_, module, module_file))
        return amended_modules
예제 #19
0
파일: setup.py 프로젝트: ant9000/libsigrok
 def find_package_modules(self, package, pkg_dir):
     mods = _build_py.find_package_modules(self, package, pkg_dir)
     vmods = _build_py.find_package_modules(self, package, vpath(pkg_dir))
     mods.extend([mod for mod in vmods if mod not in mods])
     return mods
예제 #20
0
 def find_package_modules(self, package, pkg_dir):
     mods = _build_py.find_package_modules(self, package, pkg_dir)
     vmods = _build_py.find_package_modules(self, package, vpath(pkg_dir))
     mods.extend([mod for mod in vmods if mod not in mods])
     return mods
예제 #21
0
 def find_package_modules(self, package, package_dir):
     modules = _build_py.find_package_modules(self, package, package_dir)
     if not WITH_MZV and package == 'surface_dynamics/misc':
         modules = [(pkg, mod, file) for (pkg, mod, file) in modules
                    if mod != 'generalized_multiple_zeta_values']
     return modules