From 377ac1495cd6f20f1545c0b84891e7bfc4bf11be Mon Sep 17 00:00:00 2001 From: Paul Baksic <30337881+bakpaul@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:02:05 +0100 Subject: [PATCH] Add new dependency for python to enable auto-stubgen (#59) --- docker/sofabuilder_ubuntu/Dockerfile | 6 +++--- setup/setup-macos.sh | 2 +- setup/setup-windows_2.bat | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/sofabuilder_ubuntu/Dockerfile b/docker/sofabuilder_ubuntu/Dockerfile index 51f9f2bd..f91830d8 100644 --- a/docker/sofabuilder_ubuntu/Dockerfile +++ b/docker/sofabuilder_ubuntu/Dockerfile @@ -75,15 +75,15 @@ RUN curl -L https://bootstrap.pypa.io/pip/2.7/get-pip.py --output /tmp/get-pip2. RUN curl -L https://bootstrap.pypa.io/pip/get-pip.py --output /tmp/get-pip3.py \ && python3.10 /tmp/get-pip3.py \ && python3.10 -m pip install --upgrade pip \ - && python3.10 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION + && python3.10 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION mypy pybind11-stubgen RUN curl -L https://bootstrap.pypa.io/pip/get-pip.py --output /tmp/get-pip3.py \ && python3.11 /tmp/get-pip3.py \ && python3.11 -m pip install --upgrade pip \ - && python3.11 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION + && python3.11 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION mypy pybind11-stubgen RUN curl -L https://bootstrap.pypa.io/pip/get-pip.py --output /tmp/get-pip3.py \ && python3.12 /tmp/get-pip3.py \ && python3.12 -m pip install --upgrade pip \ - && python3.12 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION + && python3.12 -m pip install numpy==1.26.4 scipy matplotlib pybind11==$PYBIND11_VERSION mypy pybind11-stubgen ENV VM_HAS_ASSIMP="true" ENV VM_HAS_OPENCASCADE="true" diff --git a/setup/setup-macos.sh b/setup/setup-macos.sh index a39ae16d..c5f9fda4 100644 --- a/setup/setup-macos.sh +++ b/setup/setup-macos.sh @@ -45,7 +45,7 @@ brew unlink python@3.8 || true brew unlink python@3.7 || true brew link --force python@3.8 python3 -m pip install --upgrade pip -python3 -m pip install numpy scipy pygame +python3 -m pip install numpy scipy pygame mypy pybind11-stubgen brew install pybind11 echo "--------------------------------------------" diff --git a/setup/setup-windows_2.bat b/setup/setup-windows_2.bat index e546367f..205f2a4a 100755 --- a/setup/setup-windows_2.bat +++ b/setup/setup-windows_2.bat @@ -45,11 +45,11 @@ pathed /MACHINE /REMOVE C:\Python311\ pathed /MACHINE /REMOVE C:\Python312\Scripts\ pathed /MACHINE /REMOVE C:\Python312\ C:\Python310\python.exe -m pip install --upgrade pip -C:\Python310\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib +C:\Python310\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib mypy pybind11-stubgen C:\Python311\python.exe -m pip install --upgrade pip -C:\Python311\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib +C:\Python311\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib mypy pybind11-stubgen C:\Python312\python.exe -m pip install --upgrade pip -C:\Python312\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib +C:\Python312\python.exe -m pip install numpy scipy pybind11==2.9.1 matplotlib mypy pybind11-stubgen REM Install plugins dependencies