MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_python_major_version

Function get_python_major_version

configure.py:191–193  ·  view source on GitHub ↗

Get the python major version.

(python_bin_path)

Source from the content-addressed store, hash-verified

189
190
191def get_python_major_version(python_bin_path):
192 """Get the python major version."""
193 return run_shell([python_bin_path, '-c', 'import sys; print(sys.version[0])'])
194
195
196def setup_python(environ_cp):

Callers 1

setup_pythonFunction · 0.85

Calls 1

run_shellFunction · 0.85

Tested by

no test coverage detected