def run(self): if not self.executables: return # Make sure that library sources are complete. languages = [] for exe in self.executables: if not all_strings(exe.sources): self.run_command("build_src") l = exe.language if l and l not in languages: languages.append(l) ## Are the following lines unique for executables? from distutils.ccompiler import new_compiler self.compiler = new_compiler(compiler=self.compiler, dry_run=self.dry_run, force=self.force) self.compiler.customize(self.distribution, need_cxx=self.have_cxx_sources()) self.compiler.customize_cmd(self) self.compiler.show_customization() if have_numpy and self.have_f_sources(): from numpy.distutils.fcompiler import new_fcompiler self.fcompiler = new_fcompiler( compiler=self.fcompiler, verbose=self.verbose, dry_run=self.dry_run, force=self.force, requiref90="f90" in languages, c_compiler=self.compiler, ) if self.fcompiler is not None: self.fcompiler.customize(self.distribution) self.fcompiler.customize_cmd(self) self.fcompiler.show_customization() for exe in self.executables: build_target(self, exe, exe.name, EXECUTABLE) """
def build_a_library(self, build_info, lib_name, libraries): build_target(self, build_info, lib_name, SHARED_LIBRARY)