mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Merge pull request #984 from flatcar/fix-bashrc-for-py3.10
profiles/coreos: Account for python versions with minor > 10
This commit is contained in:
commit
b02553a8c9
@ -81,7 +81,7 @@ cros_pre_src_unpack_python_multilib_setup() {
|
||||
[[ ${am_cv_python_version:+set} == "set" ]] && return
|
||||
|
||||
local py=${PYTHON:-python}
|
||||
local py_ver=$(${py} -c 'import sys;sys.stdout.write(sys.version[:3])')
|
||||
local py_ver=$(${py} -c 'import sys;sys.stdout.write(sys.version[:4])')
|
||||
|
||||
export am_cv_python_version=${py_ver}
|
||||
export am_cv_python_pythondir="\${libdir}/python${py_ver}/site-packages"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user