install: updates to support building deb/rpm packages that contain python wheels and install core from a single file, updates to core to install scripts by way of python directly

This commit is contained in:
Blake Harnden 2022-07-27 16:00:10 -07:00
parent cd6bb319ad
commit fcf6f30302
54 changed files with 528 additions and 187 deletions

13
package/after-remove.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if [ -v NO_PYTHON ]; then
exit 0
fi
PYTHON="${PYTHON:=python3}"
if [ -v NO_VENV ]; then
${PYTHON} -m pip uninstall core
else
${PYTHON} -m venv /opt/core/venv
. /opt/core/venv/bin/activate
pip uninstall core
fi