Lines Matching refs:ext

356         for i, ext in enumerate(extensions):
357 if isinstance(ext, Extension):
361 if not isinstance(ext, tuple) or len(ext) != 2:
366 ext_name, build_info = ext
385 ext = Extension(ext_name, build_info['sources'])
394 setattr(ext, key, val)
397 ext.runtime_library_dirs = build_info.get('rpath')
406 ext.define_macros = []
407 ext.undef_macros = []
414 ext.undef_macros.append(macro[0])
416 ext.define_macros.append(macro)
418 extensions[i] = ext
425 for ext in self.extensions:
426 filenames.extend(ext.sources)
440 for ext in self.extensions:
441 outputs.append(self.get_ext_fullpath(ext.name))
448 for ext in self.extensions:
449 self.build_extension(ext)
451 def build_extension(self, ext): argument
452 sources = ext.sources
457 "a list of source filenames") % ext.name
460 ext_path = self.get_ext_fullpath(ext.name)
461 depends = sources + ext.depends
463 log.debug("skipping '%s' extension (up-to-date)", ext.name)
466 log.info("building '%s' extension", ext.name)
471 sources = self.swig_sources(sources, ext)
487 extra_args = ext.extra_compile_args or []
489 macros = ext.define_macros[:]
490 for undef in ext.undef_macros:
496 include_dirs=ext.include_dirs,
499 depends=ext.depends)
515 if ext.extra_objects:
516 objects.extend(ext.extra_objects)
517 extra_args = ext.extra_link_args or []
520 language = ext.language or self.compiler.detect_language(sources)
524 libraries=self.get_libraries(ext),
525 library_dirs=ext.library_dirs,
526 runtime_library_dirs=ext.runtime_library_dirs,
528 export_symbols=self.get_export_symbols(ext),
561 (base, ext) = os.path.splitext(source)
562 if ext == ".i": # SWIG interface file
682 def get_export_symbols (self, ext): argument
688 initfunc_name = "init" + ext.name.split('.')[-1]
689 if initfunc_name not in ext.export_symbols:
690 ext.export_symbols.append(initfunc_name)
691 return ext.export_symbols
693 def get_libraries (self, ext): argument
713 return ext.libraries + [pythonlib]
715 return ext.libraries
728 return ext.libraries + [pythonlib]
735 return ext.libraries + [pythonlib]
751 return ext.libraries + [pythonlib, "m"] + extra
755 return ext.libraries
758 return ext.libraries
765 return ext.libraries + [pythonlib]
767 return ext.libraries