Update installers functions

This commit is contained in:
clsty
2025-02-07 10:54:54 +08:00
parent 96c33a37ac
commit a442edc41d
+7 -7
View File
@@ -121,11 +121,11 @@ install-uv (){
# Both for Arch(based) and other distros. # Both for Arch(based) and other distros.
install-python-packages (){ install-python-packages (){
UV_NO_MODIFY_PATH=1 UV_NO_MODIFY_PATH=1
PYTHON_VENV_PATH=$XDG_STATE_HOME/ags/.venv ILLOGICAL_IMPULSE_VIRTUAL_ENV=$XDG_STATE_HOME/ags/.venv
x mkdir -p $PYTHON_VENV_PATH x mkdir -p $ILLOGICAL_IMPULSE_VIRTUAL_ENV
# we need python 3.12 https://github.com/python-pillow/Pillow/issues/8089 # we need python 3.12 https://github.com/python-pillow/Pillow/issues/8089
x uv venv --prompt .venv $PYTHON_VENV_PATH -p 3.12 x uv venv --prompt .venv $ILLOGICAL_IMPULSE_VIRTUAL_ENV -p 3.12
x source $PYTHON_VENV_PATH/bin/activate x source $ILLOGICAL_IMPULSE_VIRTUAL_ENV/bin/activate
x uv pip install -r scriptdata/requirements.txt x uv pip install -r scriptdata/requirements.txt
x mkdir -p $base/cache/gradience && cd $base/cache/gradience x mkdir -p $base/cache/gradience && cd $base/cache/gradience
@@ -136,11 +136,11 @@ install-python-packages (){
x meson setup build --prefix=$VIRTUAL_ENV x meson setup build --prefix=$VIRTUAL_ENV
x meson compile -C build x meson compile -C build
x meson install -C build x meson install -C build
for i in "glib-2.0" "gradience"; do
x rsync -av "$PYTHON_VENV_PATH"/share/$i/ "$XDG_DATA_HOME"/$i/
done
x cd - x cd -
x deactivate # We don't need the virtual environment anymore x deactivate # We don't need the virtual environment anymore
for i in "glib-2.0" "gradience"; do
x rsync -av "$ILLOGICAL_IMPULSE_VIRTUAL_ENV"/share/$i/ "$XDG_DATA_HOME"/$i/
done
} }
# Only for Arch(based) distro. # Only for Arch(based) distro.