You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
#!/usr/bin/env bash |
|
|
|
./configure --prefix=/usr \ |
|
--enable-shared \ |
|
--with-system-expat \ |
|
--enable-optimizations \ |
|
--without-static-libpython |
|
|
|
make |
|
|
|
[ -e /tmp/python_make_test.log ] && rm /tmp/python_make_test.log |
|
|
|
if ! make test TESTOPTS="--timeout 120" | tee /tmp/python_make_test.log |
|
then |
|
grep ^FAIL: /tmp/python_make_test.log | cut -d' ' -f 2 | while IFS= read -r failure |
|
do |
|
echo "${failure}" |
|
case ${failure} in |
|
test_ftp_error) |
|
echo "dns resolver is not yet configured in chroot. so it's ok." |
|
echo "and be online is not a requirement" |
|
continue |
|
;; |
|
*) |
|
echo "Critical error in tests : ${failure}" |
|
exit 1 |
|
;; |
|
esac |
|
done |
|
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.14.3/html |
|
|
|
tar --strip-components=1 \ |
|
--no-same-owner \ |
|
--no-same-permissions \ |
|
-C /usr/share/doc/python-3.14.3/html \ |
|
-xvf ../python-3.14.3-docs-html.tar.bz2 |
|
|
|
|