Skip to content

Commit

Permalink
use PIP_CONSTRAINT
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 21, 2024
1 parent 3cfce61 commit 12b1d8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions installation/routines/setup_jukebox_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ _jukebox_core_install_python_requirements() {
source "$VIRTUAL_ENV/bin/activate"

pip install --upgrade pip
pip install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt" --constraint "${INSTALLATION_PATH}/constraint.txt"
PIP_CONSTRAINT="${INSTALLATION_PATH}/constraint.txt" \
pip install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt"
}

_jukebox_core_configure_pulseaudio() {
Expand Down Expand Up @@ -85,8 +86,8 @@ _jukebox_core_build_and_install_pyzmq() {
_jukebox_core_download_prebuilt_libzmq_with_drafts
fi

ZMQ_PREFIX="${JUKEBOX_ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \
pip install -v pyzmq --no-binary pyzmq --constraint "${INSTALLATION_PATH}/constraint.txt"
PIP_CONSTRAINT="${INSTALLATION_PATH}/constraint.txt" ZMQ_PREFIX="${JUKEBOX_ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \
pip install -v pyzmq --no-binary pyzmq

else
print_lc " Skipping. pyzmq already installed"
Expand Down

0 comments on commit 12b1d8a

Please sign in to comment.