Lines Matching refs:extension
3 Implements the Distutils 'build_ext' command, for building extension
18 from distutils.extension import Extension
26 # An extension name is just a dot-separated list of Python NAMEs (ie.
62 "directory for compiled extension modules"),
282 # Extension instances. See the documentation for Extension (in
283 # distutils.extension) for details.
289 # Extension instances do except the name, with a few things being
290 # differently named. We convert these 2-tuples to Extension
345 Extension objects. We also support the old-style list of 2-tuples,
347 Extension instances here.
354 "'ext_modules' option must be a list of Extension instances"
357 if isinstance(ext, Extension):
359 # by Extension constructor)
364 "Extension instance or 2-tuple")
369 "ext_modules for extension '%s'"
370 "-- please convert to Extension instance" % ext_name))
376 "must be the extension name (a string)")
384 # to an Extension instance.
385 ext = Extension(ext_name, build_info['sources'])
455 ("in 'ext_modules' option (extension '%s'), " +
463 log.debug("skipping '%s' extension (up-to-date)", ext.name)
466 log.info("building '%s' extension", ext.name)
480 # - 'extra_compile_args' in Extension object
506 # build of an extension module. Since Distutils does not
534 def swig_sources (self, sources, extension):
555 ('-c++' in extension.swig_opts):
580 for o in extension.swig_opts:
624 # (extension names, filenames, whatever)
626 """Returns the path of the filename for a given extension.
631 # makes sure the extension name is only using dots
658 """Returns the fullname of a given extension name.
667 r"""Convert the name of an extension (eg. "foo.bar") into the name
673 # OS/2 has an 8 character module (extension) limit :-(
683 """Return the list of symbols that a shared extension has to
695 shared extension. On most platforms, this is just 'ext.libraries';