run_make_support/external_deps/python.rs
1use crate::command::Command;
2use crate::env::env_var;
3
4/// Obtain path of python as provided by the `PYTHON` environment variable. It is up to the caller
5/// to document and check if the python version is compatible with its intended usage.
6#[track_caller]
7#[must_use]
8pub fn python_command() -> Command {
9 let python_path = env_var("PYTHON");
10 Command::new(python_path)
11}