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:
parent
cd6bb319ad
commit
fcf6f30302
54 changed files with 528 additions and 187 deletions
13
package/after-remove.sh
Normal file
13
package/after-remove.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue