MCPcopy Create free account
hub / github.com/numpy/numpy / Extension

Class Extension

numpy/distutils/extension.py:17–105  ·  view source on GitHub ↗

Parameters ---------- name : str Extension name. sources : list of str List of source file locations relative to the top directory of the package. extra_compile_args : list of str Extra command line arguments to pass to the compiler. extra_f77

Source from the content-addressed store, hash-verified

15
16
17class Extension(old_Extension):
18 """
19 Parameters
20 ----------
21 name : str
22 Extension name.
23 sources : list of str
24 List of source file locations relative to the top directory of
25 the package.
26 extra_compile_args : list of str
27 Extra command line arguments to pass to the compiler.
28 extra_f77_compile_args : list of str
29 Extra command line arguments to pass to the fortran77 compiler.
30 extra_f90_compile_args : list of str
31 Extra command line arguments to pass to the fortran90 compiler.
32 """
33 def __init__(
34 self, name, sources,
35 include_dirs=None,
36 define_macros=None,
37 undef_macros=None,
38 library_dirs=None,
39 libraries=None,
40 runtime_library_dirs=None,
41 extra_objects=None,
42 extra_compile_args=None,
43 extra_link_args=None,
44 export_symbols=None,
45 swig_opts=None,
46 depends=None,
47 language=None,
48 f2py_options=None,
49 module_dirs=None,
50 extra_c_compile_args=None,
51 extra_cxx_compile_args=None,
52 extra_f77_compile_args=None,
53 extra_f90_compile_args=None,):
54
55 old_Extension.__init__(
56 self, name, [],
57 include_dirs=include_dirs,
58 define_macros=define_macros,
59 undef_macros=undef_macros,
60 library_dirs=library_dirs,
61 libraries=libraries,
62 runtime_library_dirs=runtime_library_dirs,
63 extra_objects=extra_objects,
64 extra_compile_args=extra_compile_args,
65 extra_link_args=extra_link_args,
66 export_symbols=export_symbols)
67
68 # Avoid assert statements checking that sources contains strings:
69 self.sources = sources
70
71 # Python 2.4 distutils new features
72 self.swig_opts = swig_opts or []
73 # swig_opts is assumed to be a list. Here we handle the case where it
74 # is specified as a string instead.

Callers 6

setup.pyFile · 0.90
setup.pyFile · 0.85
setup_example.pyFile · 0.85
setup.pyFile · 0.85
add_extensionMethod · 0.85
compileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected