Skip to content

Commit

Permalink
deploy: not install darkdetect on test (is optional)
Browse files Browse the repository at this point in the history
Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed May 4, 2024
1 parent 833286a commit f33ea42
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
15 changes: 0 additions & 15 deletions deploy/python_install_installer_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,6 @@ set -ex
DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
REPODIR="${DIR}/.."

#Install python darkdetect
cp --recursive ${REPODIR}/deploy/build_packages/{setup.cfg,setup.py} ${REPODIR}/subprojects/darkdetect
cd ${REPODIR}/subprojects/darkdetect

TAG=$(git describe --tags --abbrev=0 | sed 's/[^0-9.]*//g')
sed -i "s/version = _VERSION/version = ${TAG}/g" setup.cfg
python3 -m build --wheel --no-isolation

if [ "$EUID" -ne 0 ]; then
echo "Please run as root to install"
exit
else
python3 -m installer --destdir="/" dist/*.whl
fi

#Install LenovoLegionLinux python package
cd ${REPODIR}
TAG=$(git describe --tags --abbrev=0 | sed 's/[^0-9.]*//g')
Expand Down
18 changes: 0 additions & 18 deletions deploy/python_install_pip_pkg.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,8 @@
#!/bin/bash
#!/bin/bash
set -ex
DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
REPODIR="${DIR}/.."

#Install python darkdetect
cp --recursive ${REPODIR}/deploy/build_packages/{setup.cfg,setup.py} ${REPODIR}/subprojects/darkdetect
cd ${REPODIR}/subprojects/darkdetect

TAG=$(git describe --tags --abbrev=0 | sed 's/[^0-9.]*//g')
sed -i "s/version = _VERSION/version = ${TAG}/g" setup.cfg

python3 -m pip install --upgrade build installer
python3 -m build

if [ "$EUID" -ne 0 ]; then
echo "Please run as root to install"
exit
else
python3 -m installer --destdir="/" dist/*.whl
fi

#Install LenovoLegionLinux python package
cd ${REPODIR}
TAG=$(git describe --tags --abbrev=0 | sed 's/[^0-9.]*//g')
Expand Down

0 comments on commit f33ea42

Please sign in to comment.