scripts: add support for installing speedups

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-08-15 10:48:54 -04:00
parent d4c4b64cd5
commit ffbb628ce2
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
2 changed files with 10 additions and 1 deletions

View File

@ -12,6 +12,7 @@ CONFIG_PATH="${MOONRAKER_CONFIG_PATH}"
LOG_PATH="${MOONRAKER_LOG_PATH}" LOG_PATH="${MOONRAKER_LOG_PATH}"
DATA_PATH="${MOONRAKER_DATA_PATH}" DATA_PATH="${MOONRAKER_DATA_PATH}"
INSTANCE_ALIAS="${MOONRAKER_ALIAS:-moonraker}" INSTANCE_ALIAS="${MOONRAKER_ALIAS:-moonraker}"
SPEEDUPS="${MOONRAKER_SPEEDUPS:-n}"
SERVICE_VERSION="1" SERVICE_VERSION="1"
MACHINE_PROVIDER="systemd_cli" MACHINE_PROVIDER="systemd_cli"
@ -88,6 +89,11 @@ create_virtualenv()
# Install/update dependencies # Install/update dependencies
${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/moonraker-requirements.txt ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/moonraker-requirements.txt
if [ ${SPEEDUPS} = "y" ]; then
report_status "Installing Speedups..."
${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/moonraker-speedups.txt
fi
} }
# Step 5: Initialize data folder # Step 5: Initialize data folder
@ -233,12 +239,13 @@ set -e
SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )" SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
# Parse command line arguments # Parse command line arguments
while getopts "rfzxc:l:d:a:" arg; do while getopts "rfzxsc:l:d:a:" arg; do
case $arg in case $arg in
r) REBUILD_ENV="y";; r) REBUILD_ENV="y";;
f) FORCE_DEFAULTS="y";; f) FORCE_DEFAULTS="y";;
z) DISABLE_SYSTEMCTL="y";; z) DISABLE_SYSTEMCTL="y";;
x) SKIP_POLKIT="y";; x) SKIP_POLKIT="y";;
s) SPEEDUPS="y";;
c) CONFIG_PATH=$OPTARG;; c) CONFIG_PATH=$OPTARG;;
l) LOG_PATH=$OPTARG;; l) LOG_PATH=$OPTARG;;
d) DATA_PATH=$OPTARG;; d) DATA_PATH=$OPTARG;;

View File

@ -0,0 +1,2 @@
msgspec>=0.18.4 ; python_version>='3.8'
uvloop>=0.17.0