OpenQuizz
Une application de gestion des contenus pédagogiques
build_ext Class Reference
Inheritance diagram for build_ext:
Collaboration diagram for build_ext:

Public Member Functions

def initialize_options (self)
 
def finalize_options (self)
 
def run (self)
 
def check_extensions_list (self, extensions)
 
def get_source_files (self)
 
def get_outputs (self)
 
def build_extensions (self)
 
def build_extension (self, ext)
 
def swig_sources (self, sources, extension)
 
def find_swig (self)
 
def get_ext_fullpath (self, ext_name)
 
def get_ext_fullname (self, ext_name)
 
def get_ext_filename (self, ext_name)
 
def get_export_symbols (self, ext)
 
def get_libraries (self, ext)
 

Data Fields

 extensions
 
 build_lib
 
 plat_name
 
 build_temp
 
 inplace
 
 package
 
 include_dirs
 
 define
 
 undef
 
 libraries
 
 library_dirs
 
 rpath
 
 link_objects
 
 debug
 
 force
 
 compiler
 
 swig
 
 swig_cpp
 
 swig_opts
 
 user
 
 parallel
 

Static Public Attributes

 description
 
 sep_by
 
 user_options
 
 boolean_options
 
 help_options
 

Member Function Documentation

◆ build_extension()

def build_extension (   self,
  ext 
)

◆ build_extensions()

def build_extensions (   self)

◆ check_extensions_list()

def check_extensions_list (   self,
  extensions 
)
Ensure that the list of extensions (presumably provided as a
command option 'extensions') is valid, i.e. it is a list of
Extension objects.  We also support the old-style list of 2-tuples,
where the tuples are (ext_name, build_info), which are converted to
Extension instances here.

Raise DistutilsSetupError if the structure is invalid anywhere;
just returns otherwise.

◆ finalize_options()

def finalize_options (   self)

◆ find_swig()

def find_swig (   self)
Return the name of the SWIG executable.  On Unix, this is
just "swig" -- it should be in the PATH.  Tries a bit harder on
Windows.

◆ get_export_symbols()

def get_export_symbols (   self,
  ext 
)
Return the list of symbols that a shared extension has to
export.  This either uses 'ext.export_symbols' or, if it's not
provided, "PyInit_" + module_name.  Only relevant on Windows, where
the .pyd file (DLL) must export the module "PyInit_" function.

◆ get_ext_filename()

def get_ext_filename (   self,
  ext_name 
)
Convert the name of an extension (eg. "foo.bar") into the name
of the file from which it will be loaded (eg. "foo/bar.so", or
"foo\bar.pyd").

◆ get_ext_fullname()

def get_ext_fullname (   self,
  ext_name 
)
Returns the fullname of a given extension name.

Adds the `package.` prefix

◆ get_ext_fullpath()

def get_ext_fullpath (   self,
  ext_name 
)
Returns the path of the filename for a given extension.

The file is located in `build_lib` or directly in the package
(inplace option).

◆ get_libraries()

def get_libraries (   self,
  ext 
)
Return the list of libraries to link against when building a
shared extension.  On most platforms, this is just 'ext.libraries';
on Windows, we add the Python library (eg. python20.dll).

◆ get_outputs()

def get_outputs (   self)

◆ get_source_files()

def get_source_files (   self)

◆ initialize_options()

def initialize_options (   self)

◆ run()

def run (   self)

◆ swig_sources()

def swig_sources (   self,
  sources,
  extension 
)
Walk the list of source files in 'sources', looking for SWIG
interface (.i) files.  Run SWIG on all that are found, and
return a modified 'sources' list with SWIG source files replaced
by the generated C (or C++) files.

Field Documentation

◆ boolean_options

boolean_options
static

◆ build_lib

build_lib

◆ build_temp

build_temp

◆ compiler

compiler

◆ debug

debug

◆ define

define

◆ description

description
static

◆ extensions

extensions

◆ force

force

◆ help_options

help_options
static

◆ include_dirs

include_dirs

◆ inplace

inplace

◆ libraries

libraries

◆ library_dirs

library_dirs

◆ link_objects

link_objects

◆ package

package

◆ parallel

parallel

◆ plat_name

plat_name

◆ rpath

rpath

◆ sep_by

sep_by
static

◆ swig

swig

◆ swig_cpp

swig_cpp

◆ swig_opts

swig_opts

◆ undef

undef

◆ user

user

◆ user_options

user_options
static

The documentation for this class was generated from the following file: