Improve python handling

This commit is contained in:
Jordan Carlin 2025-05-31 14:31:35 -07:00
parent ff6e71498d
commit 06298069f8
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ fi
STATUS="glib"
if [ ! -e "$RISCV"/include/glib-2.0 ]; then
section_header "Installing glib"
pip install -U meson # Meson is needed to build glib
pip --require-virtualenv install -U meson # Meson is needed to build glib
cd "$RISCV"
wget -nv --retry-connrefused $retry_on_host_error https://download.gnome.org/sources/glib/2.70/glib-2.70.5.tar.xz
tar -xJf glib-2.70.5.tar.xz

View file

@ -58,6 +58,6 @@ source "$RISCV"/riscv-python/bin/activate # activate python virtual environment
# Install python packages, including RISCOF (https://github.com/riscv-software-src/riscof.git)
# RISCOF is a RISC-V compliance test framework that is used to run the RISC-V Arch Tests.
STATUS="python packages"
pip install --upgrade pip && pip install --upgrade -r "$WALLY"/bin/requirements.txt
pip --require-virtualenv install --upgrade pip && pip --require-virtualenv install --upgrade -r "$WALLY"/bin/requirements.txt
echo -e "${SUCCESS_COLOR}Python environment successfully configured!${ENDC}"