Installation ============ Eventually create a new virtual environment and then just run .. code-block:: sh pip install pinefarm Non Python dependencies ----------------------- Even if the installation management tries to reduce as much as possible the amount of dependencies, still a few ingredients have to be available on the system. To install `MadGraph5_aMC@NLO `_ and its dependencies: - ``gfortran`` - ``wget`` and that will also require a development installation of ``pineappl`` which requires: - ``pkg-config`` - ``openssl`` (e.g. on Debian available in the ``libssl-dev`` package) Note that if ``openssl`` is not present in your system, you can either try to install it with conda (if you are in a conda environment), or you can install it from source as following .. code-block:: sh wget https://www.openssl.org/source/openssl-X.Y.Zk.tar.gz tar -zxvf openssl-X.Y.Zk.tar.gz cd openssl-X.Y.Zk ./config --prefix=$HOME/local --openssldir=$HOME/local/openssl make make install after which you will need to add the folder containing `openssl.pc` (`libssl.pc`) to your `PKG_CONFIG_PATH` environment variable. Configure paths --------------- Pinefarm is acting as an interface to other external programs, which it will try to install and manage on its own (the additional dependencies above are the exception). However, in some situtations it might be advantages to control path and executables by hand: this can be configured via the ``pinefarm.toml`` file. Please take a look to `the template configuration `_ provided in the repository for a list of available options. ``pinefarm`` can still run without the configuration file present, by assuming some default values. Install in development mode --------------------------- For development you need in addition the following tools: - `poetry`, follow `installation instructions `_ - `poetry-dynamic-versioning`, used to manage the version (see `repo `_) - `pre-commit`, to run maintenance hooks before commits (see `instructions `_) Then you can run .. code-block:: sh poetry install To access the CLI you can run .. code-block:: sh poetry run pinefarm