10.1.1. numpy.distutils.parse_flags

numpy.distutils.parse_flags(line)[source]

Parse a line from a config file containing compile flags.

Parameters:

line : str

A single line containing one or more compile flags.

Returns:

d : dict

Dictionary of parsed flags, split into relevant categories. These categories are the keys of d:

  • ‘include_dirs’
  • ‘library_dirs’
  • ‘libraries’
  • ‘macros’
  • ‘ignored’