module documentation
Undocumented
Class |
|
Object containing build information about a library. |
Class |
|
Container object for the variables defined in a config file. |
Exception |
|
Exception thrown when there is a problem parsing a configuration file. |
Exception |
|
Exception raised when a package can not be located. |
Function | parse |
Undocumented |
Function | parse |
Parse a line from a config file containing compile flags. |
Function | parse |
Undocumented |
Function | parse |
Undocumented |
Function | parse |
Undocumented |
Function | pkg |
Undocumented |
Function | read |
Return library info for a package from its configuration file. |
Function | _escape |
Undocumented |
Function | _read |
Undocumented |
Constant | _CACHE |
Undocumented |
Constant | _VAR |
Undocumented |
Return library info for a package from its configuration file.
See Also
Examples
>>> npymath_info = np.distutils.npy_pkg_config.read_config('npymath') >>> type(npymath_info) <class 'numpy.distutils.npy_pkg_config.LibraryInfo'> >>> print(npymath_info) Name: npymath Description: Portable, core math library implementing C99 standard Requires: Version: 0.1 #random
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. |
Returns | |
class instance | pkginfo - The LibraryInfo instance containing the build information. |
Raises | |
PkgNotFound | If the package is not found. |