From 614149db50e1a231029a68da60a5fcb0e7ff3116 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:42:59 +0200 Subject: [PATCH] test: remove existing apt libzmq --- constraint.txt | 6 +++--- installation/routines/setup_jukebox_core.sh | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/constraint.txt b/constraint.txt index 54aebf332..b8d398f80 100644 --- a/constraint.txt +++ b/constraint.txt @@ -1,3 +1,3 @@ -cmake<3.29 -pyzmq==26.0.0 -scikit-build-core<0.9 +cmake +pyzmq +scikit-build-core diff --git a/installation/routines/setup_jukebox_core.sh b/installation/routines/setup_jukebox_core.sh index 53d99a854..88125c8b0 100644 --- a/installation/routines/setup_jukebox_core.sh +++ b/installation/routines/setup_jukebox_core.sh @@ -79,6 +79,10 @@ _jukebox_core_build_and_install_pyzmq() { print_lc " Install pyzmq with libzmq-drafts to support WebSockets" if ! pip list | grep -F pyzmq >> /dev/null; then + + print_lc " Remove apt libzmq" + sudo apt-get -y remove libzmq5 + mkdir -p "${JUKEBOX_ZMQ_TMP_DIR}" || exit_on_error if [ "$BUILD_LIBZMQ_WITH_DRAFTS_ON_DEVICE" = true ] ; then _jukebox_core_build_libzmq_with_drafts @@ -86,6 +90,9 @@ _jukebox_core_build_and_install_pyzmq() { _jukebox_core_download_prebuilt_libzmq_with_drafts fi + print_lc " Run ldconfig" + sudo ldconfig -v + PIP_CONSTRAINT="${INSTALLATION_PATH}/constraint.txt" ZMQ_PREFIX="${JUKEBOX_ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \ pip install -v pyzmq --no-binary pyzmq