3 The test suite requires Python 3.3 and relies on a number of other packages. These need to be installed for the test suite to function.
4 To install Python 3.3 in CentOS 7, an additional repository, Software Collections (see https://www.softwarecollections.org/en/scls/rhscl/python33) should be enabled.
6 Install the requirements as specified below.
9 ## Enable Software Collections (SCL)
12 yum -y install scl-utils
13 yum -y install https://www.softwarecollections.org/en/scls/rhscl/python33/epel-7-x86_64/download/rhscl-python33-epel-7-x86_64.noarch.rpm
18 There are a number of packages that must be installed using `yum`. These can be installed like so:
21 yum -y --exclude=python33-mod_wsgi* install python33-* pciutils
28 To avoid file permission errors and Python version issues, use virtualenv to create an isolated environment with Python3.
29 The required Python 3 packages can be found in the `requirements.txt` file in the root of the test suite.
30 They can be installed in your virtual environment like so:
33 scl enable python33 bash
34 # Create virtual environment
38 pip install -r requirements.txt
41 You need to activate the virtual environment every time you start a new shell session.
42 To activate, simple run:
45 scl enable python33 bash
52 # Working Behind a Proxy
54 If you're behind a proxy, you'll likely want to configure this before running any of the above. For example:
57 export http_proxy=proxy.mycompany.com:123
58 export https_proxy=proxy.mycompany.com:123