def finalize_options(self): build_clib.finalize_options(self) # create the CLASS build directory and save the include path self.class_build_dir = self.build_temp self.include_dirs.insert(0, os.path.join(self.class_build_dir, 'include'))
def finalize_options (self): build_clib.finalize_options(self) self.executables = self.distribution.native_executables self.install_executables = [] self.libraries = [] ## required! if self.executables and len(self.executables) > 0: from distutils.ccompiler import new_compiler compiler = new_compiler(compiler=self.compiler) compiler.customize(self.distribution, need_cxx=self.have_cxx_sources()) exe_extension = compiler.exe_extension or '' for exe in self.executables: self.install_executables.append(exe.name + exe_extension)
def finalize_options(self): build_clib.finalize_options(self) self.libraries = self.distribution.sh_libraries self.install_shared_libraries = [] ## prevent collision self.build_temp = os.path.join(self.build_temp, "shared") if self.libraries and len(self.libraries) > 0: self.check_library_list(self.libraries) from distutils.ccompiler import new_compiler compiler = new_compiler(compiler=self.compiler) compiler.customize(self.distribution, need_cxx=self.have_cxx_sources()) static_libraries = self.distribution.libraries for lib in self.libraries: target_lib = compiler.library_filename(lib[0], lib_type="shared", output_dir="") self.install_shared_libraries.append((lib[1]["package"], target_lib))
def finalize_options (self): # disutils by default set the building directory of clib to build_temp # because clib is thought to be temp we want it to be a little more # than temp if self.build_clib is None: # copy the distutils way to create directory name from distutils.util import get_platform import sys plat_specifier = ".%s-%s" % (get_platform(), sys.version[0:3]) import os # the build tree base path can be obtained from command object # "build", which will always be called when doing # setup.py build or setup.py install build = self.distribution.get_command_obj( "build" ) #builiding tree for c library is now under clib.<platform name> self.build_clib = os.path.join(build.build_base, 'clib' + plat_specifier) pass # call the original class method _base.finalize_options(self) return
def finalize_options (self): old_build_clib.finalize_options(self) ## prevent collision self.build_temp = os.path.join(self.build_temp, 'static')
def finalize_options(self): try: build_clib.finalize_options(self) except AttributeError: pass