Installation

Build requirements

For the build of the package the following dependencies must be satisfied

package

version

libh5cpp

>=0.4.0

libpninexus

>=2.0.0

libboost

>=1.60.0

numpy

gcc compiler

>=4.7

python

>=2.7 or >=3.4

Building the package

The wrapper package follows the standard Python build and installation protocoll using Python setuptools.

$ python setup.py build
$ python setup.py install

or for Python3

$ python3 setup.py build
$ python3 setup.py install

In order to build the Sphinx documentation use

$ python3 setup.py build_sphinx

Debian and Ubuntu users

As Debian and Ubuntu are closely related the installation is quite similar. The packages are provided by a special Debian repository. To work on the package sources you need to login as root user. Use su or sudo su on Debian and Ubuntu respectively. The first task is to add the GPG key of the HDRI repository to your local keyring

$ curl http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add -

The return value of this command line should be OK. In a next step you have to add new package sources to your system. For this purpose go to /etc/apt/sources.list.d and download the sources file. For Debian (Buster) use

$ wget http://repos.pni-hdri.de/buster-pni-hdri.list

and for Ubuntu (Focal)

$ wget http://repos.pni-hdri.de/focal-pni-hdri.list

Similarly, proceed for Bullseye, Buster, Stretch, Groovy, Focal or Bionic. Once you have downloaded the file use

$ apt-get update

to update your package list and

$ apt-get install python-pninexus

or

$ apt-get install python3-pninexus

to install the the PNI/NeXus package for python or python3, respectively.