Remove Python 3.12 patch

Upstream now supports it.

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
This commit is contained in:
Juhyung Park
2024-07-03 15:58:02 +09:00
parent 88d7bb8a17
commit b8e6fecf13

View File

@@ -79,12 +79,6 @@ python3 -m venv $APP/machine-learning/venv
. $APP/machine-learning/venv/bin/activate
pip3 install poetry
cd machine-learning
if python -c 'import sys; exit(0) if sys.version_info.major == 3 and sys.version_info.minor > 11 else exit(1)'; then
echo "Python > 3.11 detected, forcing poetry update"
# Allow Python 3.12 (e.g., Ubuntu 24.04)
sed -i -e 's/<3.12/<4/g' pyproject.toml
poetry update
fi
poetry install --no-root --with dev --with cpu
cd ..
)