From 0256f3b31ca475985d2e3bcf48d67878955b829e Mon Sep 17 00:00:00 2001 From: Dan Guido Date: Sun, 9 Apr 2017 10:11:26 -0400 Subject: [PATCH] add virtualenv to CentOS instructions --- docs/pre-install_redhat_centos_6.x.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/pre-install_redhat_centos_6.x.md b/docs/pre-install_redhat_centos_6.x.md index ca59871..352d549 100644 --- a/docs/pre-install_redhat_centos_6.x.md +++ b/docs/pre-install_redhat_centos_6.x.md @@ -40,15 +40,19 @@ source /opt/rh/python27/enable # Upgrade pip itself pip -q install --upgrade pip -# # python-devel needed to prevent setup.py crash, pycrypto 2.7.1 needed for latest security patch +# python-devel needed to prevent setup.py crash pip -q install pycrypto +# pycrypto 2.7.1 needed for latest security patch pip -q install setuptools --upgrade +# virtualenv to make installing dependencies easier +pip -q install virtualenv wget -q https://github.com/trailofbits/algo/archive/master.zip unzip master.zip cd algo-master || echo "No Algo directory found" -# Install the local Algo dependencies (must be run from algo-master) +# Set up a virtualenv and install the local Algo dependencies (must be run from algo-master) +virtualenv env && source env/bin/activate pip -q install -r requirements.txt # Edit the userlist and any other settings you desire