Skip to content

Commit

Permalink
test req
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 16, 2024
1 parent ad44aca commit d080000
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ verify_optional_service_enablement() {
# 1 : textfile to read
get_args_from_file() {
local package_file="$1"
sed 's/.*#egg=//g' ${package_file} | sed -E 's/(#|=|>|<).*//g' | xargs echo
sed 's/.*#egg=//g' ${package_file} | sed -E 's/(#|=|>|<).*//g' | sed -E 's/^--.*//g' | xargs echo
}

# Check if all passed packages are installed. Fail on first missing.
Expand Down
9 changes: 4 additions & 5 deletions installation/routines/setup_jukebox_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ _jukebox_core_install_python_requirements() {
source "$VIRTUAL_ENV/bin/activate"

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

_jukebox_core_build_and_install_pyzmq
ZMQ_PREFIX="${JUKEBOX_ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \
pip install --no-cache-dir -r "${INSTALLATION_PATH}/requirements.txt"
}

_jukebox_core_configure_pulseaudio() {
Expand Down Expand Up @@ -84,9 +87,6 @@ _jukebox_core_build_and_install_pyzmq() {
else
_jukebox_core_download_prebuilt_libzmq_with_drafts
fi

ZMQ_PREFIX="${JUKEBOX_ZMQ_PREFIX}" ZMQ_DRAFT_API=1 \
pip install -v --no-binary pyzmq 'pyzmq<26'
else
print_lc " Skipping. pyzmq already installed"
fi
Expand Down Expand Up @@ -135,7 +135,6 @@ _jukebox_core_check() {
_run_setup_jukebox_core() {
_jukebox_core_install_os_dependencies
_jukebox_core_install_python_requirements
_jukebox_core_build_and_install_pyzmq
_jukebox_core_configure_pulseaudio
_jukebox_core_install_settings
_jukebox_core_register_as_service
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ gpiozero
# PyZMQ is a special case:
# On the PI, it needs to be compiled with special options to enable Websocket support
# On regular Linux PCs, Websocket is enabled in the Python package
# pyzmq
pyzmq<26
--no-binary=pyzmq

# Code quality
flake8>=4.0.0
Expand Down

0 comments on commit d080000

Please sign in to comment.