forked from Shinonome/dots-hyprland
Improvement for python installation
This commit is contained in:
@@ -7,4 +7,4 @@ XDG_STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
|
||||
BACKUP_DIR=${BACKUP_DIR:-$HOME/backup}
|
||||
UV_NO_MODIFY_PATH=1
|
||||
PYTHON_VENV_PATH=$XDG_STATE_HOME/ags/.venv
|
||||
PYTHON_BIN_PATH=$PYTHON_VENV_PATH/bin/python
|
||||
#PYTHON_BIN_PATH=$PYTHON_VENV_PATH/bin/python
|
||||
|
||||
+19
-3
@@ -113,7 +113,23 @@ install-MicroTeX (){
|
||||
x cd $base
|
||||
}
|
||||
|
||||
install-uv (){
|
||||
x curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
}
|
||||
# Below command can be used to install uv, but it's already an Arch package so...
|
||||
# curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
install-python-packages (){
|
||||
x mkdir -p $PYTHON_VENV_PATH
|
||||
# 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 source $PYTHON_VENV_PATH/bin/activate
|
||||
x uv pip install -r scriptdata/requirements.txt
|
||||
|
||||
x mkdir -p $base/cache/gradience && cd $base/cache/gradience
|
||||
try git init -b main
|
||||
try git remote add origin https://github.com/clsty/ii-gradience.git
|
||||
x git pull origin main && git submodule update --init --recursive
|
||||
x uv pip install -r requirements.txt
|
||||
x meson setup build --prefix=$VIRTUAL_ENV
|
||||
x meson compile -C build
|
||||
x meson install -C build
|
||||
x cd -
|
||||
x deactivate # We don't need the virtual environment anymore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user