Python versions

Both Python 2 and Python 3 should work.

pOCCI is primary developed in Python 2. For Python 3 sources are converted by 2to3 tool.

Packages

Development packages:

Build

Build:

python setup.py build

Tests

Unittests

python setup.py test

For Python 3 tests need to be converted and launched manually:

PYTHON=python3

cp -a tests build/lib
pushd build/lib/tests
2to3 -w -n *.py
export PYTHONPATH=$PYTHONPATH:`pwd`/..
for t in test_*.py; do ${PYTHON} ./${t}; done
popd

Code check

flake8

Table Of Contents

Previous topic

CORE

This Page