lfs-buildscripts/CH8Build/CH08.72-markupsafe.sh

34 lines
631 B
Bash
Raw Normal View History

2024-10-07 09:35:03 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d MarkupSafe-${markupsafe_version} ] && rm -rf MarkupSafe-${markupsafe_version}
tar -zxf ${markupsafe_tarball}
cd MarkupSafe-${markupsafe_version}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
if [ $? -ne 0 ]; then
myfail "Failed building MarkupSafe"
fi
pip3 install --no-index --no-user --find-links dist Markupsafe
if [ $? -ne 0 ]; then
myfail "Failed installing MarkupSafe"
fi
2024-10-08 14:49:09 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf MarkupSafe-${markupsafe_version}
popd