diskimage-builder/diskimage_builder/elements/python-stow-versions/post-install.d/70-python-build

16 lines
344 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 1 ]; then
set -x
fi
set -eu
set -o pipefail
DIB_PYTHON_FILES=('/usr/local/bin/pyenv-install', \
'/usr/localbin/pyenv-uninstall', '/usr/local/bin/python-build', \
'/usr/local/share/python-build', '/pyenv')
for path in ${DIB_PYTHON_FILES}; do
rm -rf ${DIB_PYTHON_PREFIX}/${path}
done