Esempio n. 1
0
    def build_extensions(self) -> None:
        numpy_incl = pkg_resources.resource_filename("numpy", "core/include")

        for ext in self.extensions:
            if hasattr(ext, "include_dirs") and numpy_incl not in ext.include_dirs:
                ext.include_dirs.append(numpy_incl)
        _build_ext.build_extensions(self)
Esempio n. 2
0
File: setup.py Progetto: wolfws/arch
    def build_extensions(self):
        numpy_incl = pkg_resources.resource_filename('numpy', 'core/include')

        for ext in self.extensions:
            if (hasattr(ext, 'include_dirs')
                    and numpy_incl not in ext.include_dirs):
                ext.include_dirs.append(numpy_incl)
        _build_ext.build_extensions(self)
Esempio n. 3
0
    def build_extensions(self):
        numpy_incl = pkg_resources.resource_filename('numpy', 'core/include')

        for ext in self.extensions:
            if (hasattr(ext, 'include_dirs') and
                        numpy_incl not in ext.include_dirs):
                ext.include_dirs.append(numpy_incl)
        _build_ext.build_extensions(self)
Esempio n. 4
0
 def build_extensions(self):
     compiler = self.compiler.compiler_type
     if compiler in BuildExt.C_OPTIONS:
         for extension in self.extensions:
             extension.extra_compile_args += list(BuildExt.C_OPTIONS[compiler])
     if compiler in BuildExt.LINK_OPTIONS:
         for extension in self.extensions:
             extension.extra_link_args += list(BuildExt.LINK_OPTIONS[compiler])
     build_ext.build_extensions(self)
Esempio n. 5
0
 def build_extensions(self):
     compiler = self.compiler.compiler_type
     if compiler in BuildExt.C_OPTIONS:
         for extension in self.extensions:
             extension.extra_compile_args += list(
                 BuildExt.C_OPTIONS[compiler])
     if compiler in BuildExt.LINK_OPTIONS:
         for extension in self.extensions:
             extension.extra_link_args += list(
                 BuildExt.LINK_OPTIONS[compiler])
     build_ext.build_extensions(self)