lfs-buildscripts/CH7Build/CH07.04-python.sh

40 lines
548 B
Bash
Raw Normal View History

2024-10-04 06:04:02 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-08 15:12:55 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-04 06:04:02 +08:00
[ -d Python-${python_version} ] && rm -rf Python-${python_version}
tar -Jxf ${python_tarball}
cd Python-${python_version}
./configure --prefix=/usr \
--enable-shared \
--without-ensurepip
make
if [ $? -ne 0 ]; then
myfail "Failed building python"
fi
make install
if [ $? -ne 0 ]; then
myfail "Failed installing python"
fi
2024-10-08 15:12:55 +08:00
popd
# cleanup
pushd ${GLSOURCES}
rm -rf Python-${python_version}
popd