Skip to content

Instantly share code, notes, and snippets.

@jedie
Created August 10, 2017 09:27
Show Gist options
  • Save jedie/513d2f8415af0bebba70229d49f601b2 to your computer and use it in GitHub Desktop.
Save jedie/513d2f8415af0bebba70229d49f601b2 to your computer and use it in GitHub Desktop.
#!/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