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

25 lines
539 B
Bash
Raw Normal View History

2024-10-06 17:01:29 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -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