Undocumented
Class | FormatError |
Exception thrown when there is a problem parsing a configuration file. |
Class | LibraryInfo |
Object containing build information about a library. |
Class | PkgNotFound |
Exception raised when a package can not be located. |
Class | VariableSet |
Container object for the variables defined in a config file. |
Function | _escape_backslash |
Undocumented |
Function | _read_config_imp |
Undocumented |
Function | parse_config |
Undocumented |
Function | parse_flags |
Parse a line from a config file containing compile flags. |
Function | parse_meta |
Undocumented |
Function | parse_sections |
Undocumented |
Function | parse_variables |
Undocumented |
Function | pkg_to_filename |
Undocumented |
Function | read_config |
Return library info for a package from its configuration file. |
Constant | _CACHE |
Undocumented |
Constant | _VAR |
Undocumented |
Parse a line from a config file containing compile flags.
Dictionary of parsed flags, split into relevant categories.
These categories are the keys of d
:
Return library info for a package from its configuration file.
LibraryInfo
instance containing the build information.misc_util.get_info, misc_util.get_pkg_info
>>> 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