6 | | == Setup == |
| 6 | |
| 7 | = Prepare Environment = |
| 8 | |
| 9 | CMT utilizes a PIP package for easy installation. The advantage is that PIP handles all dependencies needed to use CMT. To install the package, you therefor first might need to install the PIP package manager. |
| 10 | |
| 11 | |
| 12 | == Mandatory dependencies == |
| 13 | |
| 14 | There are several ways to install PIP. |
| 15 | |
| 16 | Using YUM package manager (RHEL):: |
| 17 | {{{yum install python-pip}}} |
| 18 | Using aptitude package manager (Debian):: |
| 19 | {{{aptitude install python-pip}}} |
| 20 | Using easy_install:: |
| 21 | {{{easy_install pip}}} |
| 22 | Using the (most recent) installer:: |
| 23 | {{{curl http://python-distribute.org/distribute_setup.py | python}}} |
| 24 | |
| 25 | |
| 26 | == Optional dependencies == |
| 27 | |
| 28 | The following are optional, but can be quite useful. |
| 29 | |
| 30 | === Virtualenv === |
| 31 | |
| 32 | Virtualenv, amongst other things, allows you to install (PIP / Python) packages in alternative locations and create complete (Python) environments. |
| 33 | |
| 34 | Using YUM:: |
| 35 | {{{yum install python-virtualenv}}} |
| 36 | Using PIP:: |
| 37 | {{{pip install virtualenv}}} |
| 38 | |
| 39 | === Virtualenv wrapper === |
| 40 | |
| 41 | These are a collection of useful wrapper scripts to make using virtual environments easy. At this time there seems to be no RPM available in the CentOS repository (RB: 14th May 2012) |
| 42 | |
| 43 | Using PIP:: |
| 44 | {{{pip install virtualenvwrapper}}} |
| 45 | |
| 46 | = Setup CMT = |