craftr.ext.python
¶
This Craftr extension module provides information about Python
installations that are required for compiling C-extensions. Use
the get_python_framework()
function to extract all the
information from a Python installation using its distutils
module.
-
craftr.ext.python.
get_python_config_vars
(python_bin)[source]¶ Given the name or path to a Python executable, this function returns the dictionary that would be returned by
distutils.sysconfig.get_config_vars()
.
-
craftr.ext.python.
get_python_framework
(python_bin)[source]¶ Uses
get_python_config_vars()
to read the configuration values and returns aFramework
from that data that exposes the following options:Variables: - include – List of include paths (derived from
INCLUDEPY
) - libpath – List of library paths (derived from
LIBDIR
)
- include – List of include paths (derived from