Skip to content

Instantly share code, notes, and snippets.

@sebmartin
sebmartin / Makefile
Created August 23, 2019 13:43
Python project Makefile
VENV=.venv
PYVERSION=3.6.5
${VENV}:
@which pyenv > /dev/null 2>&1 || (echo "Install pyenv (e.g. brew install pyenv)" && exit 1)
pyenv local ${PYVERSION} || pyenv install ${PYVERSION} && pyenv local ${PYVERSION}
virtualenv --version || pip install virtualenv
virtualenv ${VENV}
${VENV}/bin/activate: ${VENV} requirements.txt