Disable OpenSSL in Python

This commit is contained in:
YellowJacketLinux 2024-10-06 09:06:54 -07:00
parent 31c4fae8c2
commit 0f27394f23
2 changed files with 16 additions and 8 deletions

View File

@ -152,6 +152,14 @@ else
sleep 3
fi
# Disable OpenSSL
pushd /usr/include
mv openssl dis-openssl
popd
pushd /usr/lib/pkgconfig
mv libssl.pc dis-libssl.pc
popd
/bin/bash CH08.50-python.sh
if [ $? -ne 0 ]; then
@ -162,6 +170,14 @@ else
sleep 3
fi
# re-enable OpenSSL
pushd /usr/include
mv dis-openssl openssl
popd
pushd /usr/lib/pkgconfig
mv dis-libssl.pc libssl.pc
popd
/bin/bash CH08.51-flit-core.sh
if [ $? -ne 0 ]; then

View File

@ -12,17 +12,9 @@ tar -Jxf ${python_tarball}
cd Python-${python_version}
# if configure switch doesn't work, try:
#sed -i'' -e '1i\
##error' ./Modules/_ssl.c
#sed -i'' -e '1i\
##error' ./Modules/_hashopenssl.c
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--disable-ssl \
--enable-optimizations
make