35 lines
777 B
Bash
Executable File
35 lines
777 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
|
|
set -e
|
|
set -x
|
|
|
|
source /usr/local/bin/muslick.sh
|
|
|
|
if [[ "$MUSL" == "true" ]]; then
|
|
libjemalloc="/usr/local/lib/libjemalloc.so.2"
|
|
else
|
|
arch=$(uname -m)
|
|
libjemalloc=/usr/lib/${arch}-linux-gnu/libjemalloc.so.2
|
|
fi
|
|
|
|
# esure that we have libjemalloc.so.2
|
|
# otherwise the script fails because it has 'set -e'
|
|
stat ${libjemalloc} >/dev/null
|
|
|
|
|
|
echo "pwd: $(pwd)"
|
|
echo "ls -l $(ls -l)"
|
|
echo "ls -l homeassistant/ $(ls -l homeassistant/)"
|
|
sleep 5
|
|
|
|
#export LD_PRELOAD="${libjemalloc}"
|
|
#export MALLOC_CONF="background_thread:true,metadata_thp:auto,dirty_decay_ms:20000,muzzy_decay_ms:20000"
|
|
|
|
# ~30 lines
|
|
uv pip install --no-cache-dir -r /usr/local/src/core/requirements.txt
|
|
|
|
# ~2800 lines
|
|
uv pip install --no-cache-dir -r /usr/local/src/core/requirements_all.txt
|
|
|