lfs-buildscripts/CH8Build/CH08.53-setuptools.sh

34 lines
623 B
Bash
Raw Normal View History

2024-10-06 17:01:29 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-06 17:01:29 +08:00
[ -d setuptools-${setuptools_version} ] && rm -rf setuptools-${setuptools_version}
2024-10-07 00:02:51 +08:00
tar -zxf ${setuptools_tarball}
2024-10-06 17:01:29 +08:00
cd setuptools-${setuptools_version}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
if [ $? -ne 0 ]; then
myfail "Failed building setuptools"
fi
pip3 install --no-index --find-links dist setuptools
if [ $? -ne 0 ]; then
myfail "Failed installing setuptools"
fi
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf setuptools-${setuptools_version}
popd