Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
pythonversion=$1
currentdir="$(pwd)"
mkdir -p ~/lib/python/
cd ~/lib/python/
wget https://www.python.org/ftp/python/${pythonversion}/Python-${pythonversion}.tar.xz
tar -xvf Python-${pythonversion}.tar.xz
@13am
13am / download-and-compile-python3.sh
Last active May 6, 2020 17:13
Download and compile python 3 on macOS
#!/bin/bash
# Usage: bash download-and-compile-python3.sh 3.7.2
set -eu
destination_dir="${HOME}/lib/python"
start_dir="$(pwd)"
pythonversion=$1
# Install the dependencies with homebrew.