Created
April 11, 2019 18:11
-
-
Save koljenovic/e47e782e2ad104f8c17db5ed49c4fe61 to your computer and use it in GitHub Desktop.
Compile python from source
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
print(distutils.sysconfig.get_config_var('CONFIG_ARGS')) | |
sudo apt install build-essential libssl-dev libbz2-dev libncurses5-dev libncursesw5-dev libgdbm-dev liblzma-dev libsqlite3-dev tk-dev uuid-dev libreadline-dev libc6-dev zlib1g-dev libdb5.3-dev libexpat1-dev libffi-dev | |
./configure '--enable-shared' '--enable-optimizations' '--prefix=/usr' '--enable-ipv6' '--enable-loadable-sqlite-extensions' '--with-dbmliborder=bdb:gdbm' '--with-computed-gotos' '--without-ensurepip' '--with-system-expat' '--with-system-ffi' '--with-fpectl' 'CC=x86_64-linux-gnu-gcc' 'CFLAGS=-g -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment