python-config 0.1.0

Utility crate to get Python interpreter configuration.
Documentation
  • Coverage
  • 23.81%
    5 out of 21 items documented0 out of 6 items with examples
  • Size
  • Source code size: 7.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.91 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • davidhewitt

python-config

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 python_config::find_interpreter_matching;

fn main() {
    let interpreter_config = find_interpreter_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.

Contributing

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.