This is documentation for an old release of NumPy (version 1.14). Read this page in the documentation of the latest stable release (version 2.2).

numpy.distutils.misc_util.generate_config_py

numpy.distutils.misc_util.generate_config_py(target)[source]

Generate config.py file containing system_info information used during building the package.

Usage:
config[‘py_modules’].append((packagename, ‘__config__’,generate_config_py))