Skip to content

Instantly share code, notes, and snippets.

@youzipi
Forked from jmvrbanac/gist:7920633
Created April 18, 2017 08:46
Show Gist options
  • Save youzipi/c8969e0df1652363990cf8a18a5c7129 to your computer and use it in GitHub Desktop.
Save youzipi/c8969e0df1652363990cf8a18a5c7129 to your computer and use it in GitHub Desktop.
Using pyenv virtualenvs in a Jenkins Job
#!/bin/bash
set +x
# Setup all of the pyenvs
export PATH="$HOME/.pyenv/bin:$PATH"
export CONFIGURE_OPTS='--enable-shared'
eval "$(pyenv init -)"
pyenv shell 2.7.5
pyenv virtualenvwrapper
pyenv rehash
# Make virtualenv
mkvirtualenv my_env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment