Lines Matching +full:openssl +full:- +full:version
4 install_dir=$cache_dir/py3-openssl11
7 cpucount=$(nproc --all)
10 #rm -rf $cache_dir/* # uncomment to rebuild
12 if [[ $($install_dir/bin/python -V) != "Python $python_version" ]] ; then
14 mkdir -p /tmp/source
16 # Compile OpenSSL
17 curl -fLOsS "https://www.openssl.org/source/openssl-$openssl_version.tar.gz"
18 echo "Extracting OpenSSL..."
19 tar xf openssl-$openssl_version.tar.gz
20 cd ./openssl-$openssl_version
21 echo "Compiling OpenSSL $openssl_version..."
22 ./config shared --prefix=$install_dir
23 echo "Running make for OpenSSL..."
24 make -j$cpucount -s
25 echo "Running make install for OpenSSL..."
30 sudo apt install -qq --yes libffi-dev
32 curl -fLOsS "https://www.python.org/ftp/python/$python_version/Python-$python_version.tar.xz"
34 tar xf Python-$python_version.tar.xz
35 cd ./Python-$python_version
38 conf_flags="--with-openssl=$install_dir --prefix=$install_dir --with-ensurepip=upgrade"
39 CFLAGS=-O1 ./configure $conf_flags > /dev/null
40 make -j$cpucount -s
43 ln -fs pip3.7 $install_dir/bin/pip3
44 ln -fs pip3 $install_dir/bin/pip
45 ln -fs python3 $install_dir/bin/python
47 find $install_dir -type d -name __pycache__ -print0 |xargs -0 rm -rf
53 if [[ $(python -V) != "Python $python_version" ]] ; then
54 echo "Required Python version was not installed into PATH" >&2
57 if [[ $(python -c 'import ssl; print(ssl.OPENSSL_VERSION)') != OpenSSL\ ${openssl_version}* ]] ; th…
58 echo "Required OpenSSL version was not installed into Python" >&2