lfs-scripts/scripts/chapter8/8.50-python.sh
2023-01-12 14:30:17 +05:30

42 lines
698 B
Bash

#!/bin/bash
cd /sources
tar xf Python-3.10.6.tar.xz
cd Python-3.10.6
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--enable-optimizations
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make install
cat > /etc/pip.conf << EOF
[global]
root-user-action = ignore
disable-pip-version-check = true
EOF
install -v -dm755 /usr/share/doc/python-3.10.6/html
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/python-3.10.6/html \
-xvf ../python-3.10.6-docs-html.tar.bz2
cd /sources
rm -rf Python-3.10.6