numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersRaisesReturns
read_config(pkgname, dirs=None)

Parameters

pkgname : str

Name of the package (should match the name of the .ini file, without the extension, e.g. foo for the file foo.ini).

dirs : sequence, optional

If given, should be a sequence of directories - usually including the NumPy base directory - where to look for npy-pkg-config files.

Raises

PkgNotFound

If the package is not found.

Returns

pkginfo : class instance

The LibraryInfo instance containing the build information.

Return library info for a package from its configuration file.

See Also

misc_util.get_info
misc_util.get_pkg_info

Examples

This example is valid syntax, but we were not able to check execution
>>> npymath_info = np.distutils.npy_pkg_config.read_config('npymath')
... type(npymath_info) <class 'numpy.distutils.npy_pkg_config.LibraryInfo'>
This example is valid syntax, but we were not able to check execution
>>> print(npymath_info)
Name: npymath
Description: Portable, core math library implementing C99 standard
Requires:
Version: 0.1  #random
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/distutils/npy_pkg_config.py#326
type: <class 'function'>
Commit: