Skip to content

Commit

Permalink
test: remove existing apt libzmq
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 29, 2024
1 parent 12b1d8a commit 1957a30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions constraint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cmake<3.29
pyzmq==26.0.0
scikit-build-core<0.9
cmake
pyzmq
scikit-build-core
8 changes: 8 additions & 0 deletions installation/routines/setup_jukebox_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ JUKEBOX_SERVICE_NAME="${SYSTEMD_USR_PATH}/jukebox-daemon.service"
_jukebox_core_install_os_dependencies() {
print_lc " Install Jukebox OS dependencies"


print_lc " Remove apt libzmq"
sudo apt-get -y remove libzmq5

local apt_packages=$(get_args_from_file "${INSTALLATION_PATH}/packages-core.txt")
sudo apt-get -y update && sudo apt-get -y install \
$apt_packages \
Expand Down Expand Up @@ -79,13 +83,17 @@ _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

mkdir -p "${JUKEBOX_ZMQ_TMP_DIR}" || exit_on_error
if [ "$BUILD_LIBZMQ_WITH_DRAFTS_ON_DEVICE" = true ] ; then
_jukebox_core_build_libzmq_with_drafts
else
_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

Expand Down

0 comments on commit 1957a30

Please sign in to comment.