2022-07-27 16:00:10 -07:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -v NO_PYTHON ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
PYTHON="${PYTHON:=python3}"
|
|
|
|
if [ -v NO_VENV ]; then
|
2022-07-29 14:03:45 -07:00
|
|
|
${PYTHON} -m pip uninstall -y core
|
2022-07-27 16:00:10 -07:00
|
|
|
else
|
|
|
|
${PYTHON} -m venv /opt/core/venv
|
|
|
|
. /opt/core/venv/bin/activate
|
2022-07-29 14:03:45 -07:00
|
|
|
pip uninstall -y core
|
2022-07-27 16:00:10 -07:00
|
|
|
fi
|