Agent Zero AI framework
python version split polish
frdel1c966b676950
diff --git a/docker/base/Dockerfile b/docker/base/Dockerfileindex b51165a79..7e94ed80a 100644--- a/docker/base/Dockerfile+++ b/docker/base/Dockerfile@@ -24,9 +24,6 @@ RUN bash /ins/install_base_packages2.shRUN bash /ins/install_base_packages3.shRUN bash /ins/install_base_packages4.sh-# install pyenv-RUN bash /ins/install_pyenv.sh-# install python after packages to ensure version overridingRUN bash /ins/install_python.shdiff --git a/docker/base/fs/ins/install_pyenv.sh b/docker/base/fs/ins/install_pyenv.shdeleted file mode 100644index c8a98f885..000000000--- a/docker/base/fs/ins/install_pyenv.sh+++ /dev/null@@ -1,34 +0,0 @@-#!/bin/bash-set -e--echo "====================PYENV START===================="--# Install pyenv build dependencies.-apt-get install -y --no-install-recommends \- make build-essential libssl-dev zlib1g-dev libbz2-dev \- libreadline-dev libsqlite3-dev wget curl llvm \- libncursesw5-dev xz-utils tk-dev libxml2-dev \- libxmlsec1-dev libffi-dev liblzma-dev--# Install pyenv globally-git clone https://github.com/pyenv/pyenv.git /opt/pyenv--# Setup environment variables for pyenv to be available system-wide-cat > /etc/profile.d/pyenv.sh <<'EOF'-export PYENV_ROOT="/opt/pyenv"-export PATH="$PYENV_ROOT/bin:$PATH"-eval "$(pyenv init --path)"-EOF--chmod +x /etc/profile.d/pyenv.sh--# Source pyenv environment to make it available in this script-source /etc/profile.d/pyenv.sh--# Install Python 3.12.4-echo "====================PYENV INSTALLING PYTHON 3.12.4===================="-pyenv install 3.12.4--/opt/pyenv/versions/3.12.4/bin/python -m venv /opt/venv-a0--echo "====================PYENV END===================="\ No newline at end of filediff --git a/docker/base/fs/ins/install_python.sh b/docker/base/fs/ins/install_python.shindex b17d17326..82f2fc383 100644--- a/docker/base/fs/ins/install_python.sh+++ b/docker/base/fs/ins/install_python.sh@@ -3,52 +3,64 @@ set -eecho "====================PYTHON START===================="-echo "====================PYTHON 3.12 & SID REPO===================="+echo "====================PYTHON 3.13===================="-apt clean+apt clean && apt-get update && apt-get -y upgrade++# install python 3.13 globally+apt-get install -y --no-install-recommends \+ python3.13 python3.13-venv+ #python3.13-dev-# ★ 1. Add sid repo & pin it for python 3.12-# echo "deb http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/debian-sid.list-# cat >/etc/apt/preferences.d/python312 <<'EOF'-# Package: *-# Pin: release a=sid-# Pin-Priority: 100-# Package: python3.12*-# Pin: release a=sid-# Pin-Priority: 990+echo "====================PYTHON 3.13 VENV===================="++# create and activate default venv+python3.13 -m venv /opt/venv+source /opt/venv/bin/activate-# # Prevent Python 3.13 from being installed-# Package: python3.13*-# Pin: release *-# Pin-Priority: -1-# EOF+# upgrade pip and install static packages+pip install --no-cache-dir --upgrade pip ipython requests-apt-get update && apt-get -y upgrade+echo "====================PYTHON PYVENV===================="+# Install pyenv build dependencies.apt-get install -y --no-install-recommends \- python3.13 python3.13-venv python3.13-dev+ make build-essential libssl-dev zlib1g-dev libbz2-dev \+ libreadline-dev libsqlite3-dev wget curl llvm \+ libncursesw5-dev xz-utils tk-dev libxml2-dev \+ libxmlsec1-dev libffi-dev liblzma-dev-# ★ 3. Switch the interpreter-# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 0-# update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1-# update-alternatives --set python3 /usr/bin/python3.12+# Install pyenv globally+git clone https://github.com/pyenv/pyenv.git /opt/pyenv-echo "====================PYTHON VERSION: $(python3 --version) ===================="-echo "====================PYTHON OTHERS: $(ls /usr/bin/python*) "+# Setup environment variables for pyenv to be available system-wide+cat > /etc/profile.d/pyenv.sh <<'EOF'+export PYENV_ROOT="/opt/pyenv"+export PATH="$PYENV_ROOT/bin:$PATH"+eval "$(pyenv init --path)"+EOF-echo "====================PYTHON VENV===================="+# fix permissions+chmod +x /etc/profile.d/pyenv.sh-# create and activate default venv-python3.13 -m venv /opt/venv-source /opt/venv/bin/activate+# Source pyenv environment to make it available in this script+source /etc/profile.d/pyenv.sh++# Install Python 3.12.4+echo "====================PYENV 3.12 VENV===================="+pyenv install 3.12.4++/opt/pyenv/versions/3.12.4/bin/python -m venv /opt/venv-a0+source /opt/venv-a0/bin/activate# upgrade pip and install static packages-pip install --no-cache-dir --upgrade pip ipython requests+pip install --no-cache-dir --upgrade pip+# Install some packages in specific variantspip install --no-cache-dir \- torch==2.6.0 \- torchvision==0.21.0 \+ torch==2.4.0 \+ torchvision==0.19.0 \--index-url https://download.pytorch.org/whl/cpuecho "====================PYTHON UV ===================="