-
-
Save jinhoyoo/1eee3e6fd4fcaf511de34a425605faff to your computer and use it in GitHub Desktop.
Using pyenv virtualenvs in a Jenkins Job
This file contains hidden or 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
#!/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
Where do you run this script?