Skip to content

Instantly share code, notes, and snippets.

@omaciel
Created August 30, 2013 22:17
Show Gist options
  • Save omaciel/6394845 to your computer and use it in GitHub Desktop.
Save omaciel/6394845 to your computer and use it in GitHub Desktop.
Run mangonel using a virtual environment
yum install -y git python-pip
pip-python install virtualenvwrapper
export WORKON_HOME=~/.
source /usr/bin/virtualenvwrapper.sh
rm -rf /root/mangonel/ && git clone https://github.com/omaciel/mangonel.git /root/mangonel
rm -rf /root/katello-cli && git clone https://github.com/Katello/katello-cli.git /root/katello-cli
mkvirtualenv mangonel
cd /root/katello-cli
env SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" pip install -r requirements.pip
pip install coverage nose-cov
cd /root/mangonel
export PYTHONPATH=$HOME:$HOME/katello-cli/src
chmod a+x run-tests.py
deactivate
rmvirtualenv mangonel
pip-python uninstall -y virtualenvwrapper virtualenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment