MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / matching_version

Function matching_version

python3-sys/build.rs:262–265  ·  view source on GitHub ↗
(expected_version: &PythonVersion, actual_version: &PythonVersion)

Source from the content-addressed store, hash-verified

260}
261
262fn matching_version(expected_version: &PythonVersion, actual_version: &PythonVersion) -> bool {
263 actual_version.major == expected_version.major
264 && (expected_version.minor.is_none() || actual_version.minor == expected_version.minor)
265}
266
267/// Locate a suitable python interpreter and extract config from it.
268/// If the environment variable `PYTHON_SYS_EXECUTABLE`, use the provided

Callers 1

Calls 1

is_noneMethod · 0.45

Tested by

no test coverage detected