mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 7.10 - Build Python
This commit is contained in:
parent
f84f31aad1
commit
89459cacea
2 changed files with 40 additions and 0 deletions
27
scripts/chapter7/7.10-Python.sh
Normal file
27
scripts/chapter7/7.10-Python.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue