Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add piwheels config, if it doesnt exists #290

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/is_req_preinstall/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# shellcheck disable=all
[ -n "$IS_REQ_PREINSTALL_VENV_DIR" ] || IS_REQ_PREINSTALL_VENV_DIR=/home/${BASE_USER}/klippy-env
[ -n "$IS_REQ_PREINSTALL_DEPS" ] || IS_REQ_PREINSTALL_DEPS="python3-numpy python3-matplotlib \
libatlas3-base libatlas-base-dev libgfortran5"
[ -n "$IS_REQ_PREINSTALL_PIP" ] || IS_REQ_PREINSTALL_PIP="numpy<=1.23.4"
libatlas3-base libatlas-base-dev libgfortran5 libopenblas0-pthread"
[ -n "$IS_REQ_PREINSTALL_PIP" ] || IS_REQ_PREINSTALL_PIP="numpy<=1.26.4"

7 changes: 7 additions & 0 deletions src/modules/mainsailos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ apt-get update --allow-releaseinfo-change
# shellcheck disable=SC2086
check_install_pkgs ${MAINSAILOS_DEPS}
## END Step 3

## Step 4: Add piwheels to global pip resources
if [[ ! -f /etc/pip.conf ]]; then
echo_green "Adding piwheels to pip.conf ..."
echo "[global]" > /etc/pip.conf
echo "extra-index-url=https://www.piwheels.org/simple" >> /etc/pip.conf
fi
Loading