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

Function matching_version

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

is_noneMethod · 0.45

Tested by

no test coverage detected