This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / testing / _private / extbuild / compile_extension_module

function

numpy.testing._private.extbuild:compile_extension_module

source: build-install/usr/lib/python3.14/site-packages/numpy/testing/_private/extbuild.py :82

Signature

def   compile_extension_module ( name builddir include_dirs source_string libraries = None library_dirs = None )

Summary

Build an extension module and return the filename of the resulting native code file.

Parameters

name : string

name of the module, possibly including dots if it is a module inside a package.

builddir : pathlib.Path

Where to build the module, usually a temporary directory

include_dirs : list

Extra directories to find include files when compiling

libraries : list

Libraries to link into the extension module

library_dirs: list

Where to find the libraries, -L passed to the linker

Aliases

  • numpy.testing.extbuild.compile_extension_module