File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ _jukebox_core_build_and_install_pyzmq() {
86
86
fi
87
87
88
88
ZMQ_PREFIX=" ${JUKEBOX_ZMQ_PREFIX} " ZMQ_DRAFT_API=1 \
89
- pip install -v pyzmq --no-binary pyzmq
89
+ pip install -v ' pyzmq<26 ' --no-binary pyzmq
90
90
else
91
91
print_lc " Skipping. pyzmq already installed"
92
92
fi
@@ -120,6 +120,20 @@ _jukebox_core_check() {
120
120
local pip_modules=$( get_args_from_file " ${INSTALLATION_PATH} /requirements.txt" )
121
121
verify_pip_modules pyzmq $pip_modules
122
122
123
+ log " Verify ZMQ version '${JUKEBOX_ZMQ_VERSION} '"
124
+ local zmq_version=$( python -c ' import zmq; print(f"{zmq.zmq_version()}")' )
125
+ if [[ " ${zmq_version} " != " ${JUKEBOX_ZMQ_VERSION} " ]]; then
126
+ exit_on_error " ERROR: ZMQ version '${zmq_version} ' differs from expected '${JUKEBOX_ZMQ_VERSION} '!"
127
+ fi
128
+ log " CHECK"
129
+
130
+ log " Verify ZMQ has 'DRAFT-API' activated"
131
+ local zmq_hasDraftApi=$( python -c ' import zmq; print(f"{zmq.DRAFT_API}")' )
132
+ if [[ " ${zmq_hasDraftApi} " != " True" ]]; then
133
+ exit_on_error " ERROR: ZMQ has 'DRAFT-API' '${zmq_hasDraftApi} ' differs from expected 'True'!"
134
+ fi
135
+ log " CHECK"
136
+
123
137
verify_files_chmod_chown 644 " ${CURRENT_USER} " " ${CURRENT_USER_GROUP} " " ${JUKEBOX_PULSE_CONFIG} "
124
138
125
139
verify_files_chmod_chown 644 " ${CURRENT_USER} " " ${CURRENT_USER_GROUP} " " ${SETTINGS_PATH} /jukebox.yaml"
You can’t perform that action at this time.
0 commit comments