Skip to content

Instantly share code, notes, and snippets.

@pmdevita
Created January 6, 2019 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmdevita/15251655aefaf0b9b2a4ef79328d7e50 to your computer and use it in GitHub Desktop.
Save pmdevita/15251655aefaf0b9b2a4ef79328d7e50 to your computer and use it in GitHub Desktop.
Debian Python Build
PYTHON_BASE="$(pwd)"
version='3.7.2'
download_source() {
cd $PYTHON_BASE
wget -N https://www.python.org/ftp/python/$version/Python-$version.tar.xz
tar xf Python-$version.tar.xz
}
configure() {
./configure \
--enable-optimizations \
--enable-loadable-sqlite-extensions \
}
build() {
make
}
download_source
cd Python-$version
configure
build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment