Created
August 10, 2017 09:27
-
-
Save jedie/513d2f8415af0bebba70229d49f601b2 to your computer and use it in GitHub Desktop.
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 | |
# https://github.com/mitsuhiko/pipsi | |
CMD=pipsi | |
VENV_DIR=~/.local/venvs/pipsi | |
BIN_DIR=~/.local/bin | |
PACKAGES=$(cat <<EOF | |
-e git+https://github.com/mitsuhiko/pipsi.git#egg=pipsi | |
EOF | |
) | |
set -e | |
( | |
set -x | |
virtualenv --python=python3 ${VENV_DIR} | |
) | |
( | |
cd ${VENV_DIR}/bin/ | |
source activate | |
set -x | |
${VENV_DIR}/bin/pip install -U pip | |
${VENV_DIR}/bin/pip install ${PACKAGES} | |
mkdir -p ${BIN_DIR} | |
ln -s ${VENV_DIR}/bin/${CMD} ${BIN_DIR}/ | |
) | |
${CMD} --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment