Installation¶
Build requirements¶
For the build of the package the following dependencies must be satisfied
package |
version |
---|---|
libh5cpp |
>=0.5.0 |
libpninexus |
>=3.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 -s http://repos.pni-hdri.de/debian_repo.pub.gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/debian-hdri-repo.gpg --import
$ chmod 644 /etc/apt/trusted.gpg.d/debian-hdri-repo.gpg
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 (Bookworm) use
$ wget http://repos.pni-hdri.de/bookworm-hdri.list
and for Ubuntu (Jammy)
$ wget http://repos.pni-hdri.de/jammy-pni-hdri.list
Similarly, proceed for Bookworm, Bullseye, Buster, Lunar, Jammy, Focal. 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.