This crate contains functionality to locate and get configuration information about Python interpreters.
Typical usage may be to use this crate in build scripts to search for a Python interpreter:
``` use pythonconfig::findinterpreter_matching;
fn main() { let interpreterconfig = findinterpreter_matching(|c| c.version.major >= 3) .expect("Could not find Python 3 interpreter");
// Use interpreter_config to configure your package.
}
```
See examples/print_info
for a more complete demonstration how to use this crate.
At the moment this library is very barebones; if you would find this functionality useful all PRs are welcome to extend this package to a more complete form.