4 The test suite requires Python 3.3 and relies on a number of other
5 packages. These need to be installed for the test suite to function. To
6 install Python 3.3 in CentOS 7, an additional repository, Software
8 https://www.softwarecollections.org/en/scls/rhscl/python33) should be
11 Install the requirements as specified below.
13 Enable Software Collections (SCL)
14 ---------------------------------
16 .. code-block:: console
18 yum -y install scl-utils
19 yum -y install https://www.softwarecollections.org/en/scls/rhscl/python33/epel-7-x86_64/download/rhscl-python33-epel-7-x86_64.noarch.rpm
21 (Optional) Enable Repoforge (for stress)
22 ----------------------------------------
23 Allows optional installation of stress tool, which is required by load tests.
25 .. code-block:: console
27 yum -y install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
31 There are a number of packages that must be installed using `yum`. These can be installed like so:
33 .. code-block:: console
35 yum -y --exclude=python33-mod_wsgi* install python33-* pciutils
37 Optional installation of stress tool
39 .. code-block:: console
46 To avoid file permission errors and Python version issues, use
47 virtualenv to create an isolated environment with Python3. The required
48 Python 3 packages can be found in the ``requirements.txt`` file in the
49 root of the test suite. They can be installed in your virtual
54 scl enable python33 bash
55 # Create virtual environment
59 pip install -r requirements.txt
61 You need to activate the virtual environment every time you start a new
62 shell session. To activate, simple run:
66 scl enable python33 bash
72 Working Behind a Proxy
73 ======================
75 If you're behind a proxy, you'll likely want to configure this before
76 running any of the above. For example:
80 export http_proxy=proxy.mycompany.com:123
81 export https_proxy=proxy.mycompany.com:123