core-extra/package/after-remove.sh

14 lines
231 B
Bash
Raw Normal View History

#!/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