CPIP has been tested with Python 2.7 and 3.3 to 3.6. CPIP used to run just fine on Windows but I haven’t had a recent opportunity (or reason) to test CPIP on a Windows box.
First make a virtual environment in your
$ python3 -m venv <PYTHONVENVS>/CPIP $ . <PYTHONVENVS>/CPIP/bin/activate (CPIP) $
To install cpip, run this command in your terminal:
(CPIP) $ pip install cpip
This is the preferred method to install cpip, as it will always install the most recent stable release.
The sources for cpip can be downloaded from the Github repo.
You can either clone the public repository:
(CPIP) $ git clone git://github.com/paulross/cpip
Or download the tarball:
(CPIP) $ curl -OL https://github.com/paulross/cpip/tarball/master
Once you have a copy of the source, you can install it with:
(CPIP) $ python setup.py install
Install the test dependencies and run CPIP’s tests:
(CPIP) $ pip install pytest (CPIP) $ pip install pytest-runner (CPIP) $ python setup.py test
Developing with CPIP¶
If you are developing with CPIP you need test coverage and documentation tools.
(CPIP) $ pip install pytest-cov
The most meaningful invocation that elimates the top level tools is:
(CPIP) $ pytest --cov=cpip.core --cov=cpip.plot --cov=cpip.util --cov-report html tests/
If you want to build the documentation you need to:
(CPIP) $ pip install Sphinx (CPIP) $ cd docs (CPIP) $ make html
The landing page is docs/_build/html/index.html.