mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-10-01 03:43:49 +08:00
update to python 3.12 (#224)
This commit is contained in:
@@ -33,7 +33,7 @@ export QT_QPA_PLATFORM="wayland-egl"
|
||||
# python setup
|
||||
export PYTHONPATH="/data/pythonpath"
|
||||
export PATH="/usr/local/pyenv/bin:$PATH"
|
||||
export PYENV_VERSION="3.11.4"
|
||||
export PYENV_VERSION="3.12.3"
|
||||
export PYENV_ROOT="/usr/local/pyenv"
|
||||
|
||||
# output of "pyenv init - --no-rehash"
|
||||
|
||||
@@ -8,14 +8,14 @@ curl https://pyenv.run | bash
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
PYTHON_VERSION="3.11.4"
|
||||
PYTHON_VERSION="3.12.3"
|
||||
if [ "$(uname -p)" == "aarch64" ]; then
|
||||
pyenv install --verbose $PYTHON_VERSION
|
||||
else
|
||||
MAKEFLAGS="-j1" MAKE_OPTS="-j1" taskset --cpu-list 0 pyenv install --verbose $PYTHON_VERSION
|
||||
MAKEFLAGS="-j16" MAKE_OPTS="-j16" pyenv install --verbose $PYTHON_VERSION
|
||||
fi
|
||||
|
||||
echo "Setting global python version"
|
||||
pyenv global $PYTHON_VERSION
|
||||
|
||||
pip3 install --no-cache-dir --upgrade pip==22.3.1 poetry==1.2.2
|
||||
pip3 install --no-cache-dir --upgrade pip poetry
|
||||
|
||||
Generated
+1204
-1111
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ authors = ["Vehicle Researcher <user@comma.ai>"]
|
||||
description = ""
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "~3.11"
|
||||
python = "~3.12"
|
||||
atomicwrites = "*"
|
||||
cffi = "*"
|
||||
crcmod = "*"
|
||||
|
||||
Reference in New Issue
Block a user