MCPcopy Create free account
hub / github.com/pydata/numexpr / build_ext

Class build_ext

setup.py:326–350  ·  view source on GitHub ↗

Builds the interpreter shared/dynamic library.

Source from the content-addressed store, hash-verified

324 clean.run(self)
325
326 class build_ext(numpy_build_ext):
327 ''' Builds the interpreter shared/dynamic library.'''
328
329 def build_extension(self, ext):
330
331 if not NOGEN:
332 # Run Numpy to C generator
333 run_generator()
334
335 compiler = self.compiler.compiler_type
336 # print( 'compiler_type is {}'.format(compiler ) )
337
338 if not compiler in extra_compile_args:
339 compiler = 'default'
340
341 if BENCHMARKING:
342 print( "--BENCHMARKING IS ON--" )
343 define_macros[compiler] += [('BENCHMARKING', 1)]
344
345 ext.extra_compile_args = extra_compile_args[compiler]
346 ext.extra_libraries = extra_libraries[compiler]
347 ext.extra_link_args = extra_link_args[compiler]
348 ext.define_macros = define_macros[compiler]
349
350 numpy_build_ext.build_extension(self, ext)
351
352 if setuptools:
353 metadata['zip_safe'] = False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…