Add 7.10 - Build Python

This commit is contained in:
Aditya 2023-01-10 10:44:52 +05:30
parent f84f31aad1
commit 89459cacea
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
cd $LFS/sources
tar xf Python-3.10.6.tar.xz
cd Python-3.10.6
./configure --prefix=/usr \
--enable-shared \
--without-ensurepip
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
cd $LFS/sources
rm -rf Python-3.10.6

View file

@ -492,3 +492,16 @@ then
stop_script "chapter7/7.9-perl.sh"
fi
# Chapter 7.10
# ============
echo "Building Python"
su -c "bash $PWD/chapter7/7.10-Python.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter7/7.10-Python.sh"
fi