Created
December 9, 2018 16:16
-
-
Save bast/e24d5853a5977e288b3a36392afb11d1 to your computer and use it in GitHub Desktop.
How to compile your own Python with OpenSSH support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
openssl_version="1_1_0f" | |
python_version="3.7.0" | |
_here=$PWD | |
mkdir -p ${_here}/tmp | |
cd ${_here}/tmp | |
wget https://github.com/openssl/openssl/archive/OpenSSL_${openssl_version}.tar.gz | |
tar xf OpenSSL_${openssl_version}.tar.gz | |
cd openssl-OpenSSL_${openssl_version} | |
./config --prefix=${_here}/openssl >& configure.log | |
make >& make.log | |
make install >& make-install.log | |
cd ${_here}/tmp | |
wget https://www.python.org/ftp/python/${python_version}/Python-${python_version}.tgz | |
tar xf Python-${python_version}.tgz | |
cd Python-${python_version} | |
./configure CPPFLAGS="-I${_here}/openssl/include" LDFLAGS="-L${_here}/openssl/lib" \ | |
--with-openssl=${_here}/openssl --prefix=${_here}/${python_version} >& configure.log | |
make >& make.log | |
make install >& make-install.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment