Installation#
Caution
Windows is not supported by Infernal, so it is not possible to build PyInfernal on Windows as the moment. Consider using a Python install inside the Windows Subsystem for Linux if you need PyInfernal on a Windows computer.
PyPi#
pyinfernal is hosted on GitHub, but the easiest way to install it is to download
the latest release from its PyPi repository.
It will install all dependencies then install pyinfernal either from a wheel if
one is available, or from source after compiling the Cython code :
$ pip install --user pyinfernal
Note
Wheels are provided for Linux and MacOS on x86-64 and NEON-enabled Arm platforms,
but other machines will have to build the wheel from the source distribution.
Building pyinfernal involves compiling Infernal, which requires a
C compiler to be available.
GitHub + pip#
If, for any reason, you prefer to download the library from GitHub, you can clone the repository and install the repository by running (with the admin rights):
$ pip install -U git+https://github.com/althonos/pyinfernal
Caution
Keep in mind this will install always try to install the latest commit, which may not even build, so consider using a versioned release instead.
GitHub + build#
If you do not want to use pip, you can still clone the repository and
use build and installer manually:
$ git clone --recursive https://github.com/althonos/pyinfernal
$ cd pyinfernal
$ python -m build .
# python -m installer dist/*.whl
Danger
Installing packages without pip is strongly discouraged, as they can
only be uninstalled manually, and may damage your system.