-
Notifications
You must be signed in to change notification settings - Fork 29
Installation Notes
PyHEADTAIL is written in C and Python. Currently, PyHEADTAIL is compatible with Python v3.6.
For using PyHEADTAIL without modifying the source code, we recommend to install the latest version via PyPI:
$ pip install PyHEADTAIL
For developers of PyHEADTAIL, we recommend to install a stand-alone package from the source code using git. For GPU usage, the developer version is required (the Makefile is included in the source code version only).
$ git clone https://github.com/PyCOMPLETE/PyHEADTAIL
Go to the folder and run the installation script:
$ cd PyHEADTAIL
$ make
PyHEADTAIL for single- and multi-bunch simulations is available on the branch release/v1.17.0 as a pre-release version.
This version can be downloaded and installed as follows:
$ git clone https://github.com/PyCOMPLETE/PyHEADTAIL
$ cd PyHEADTAIL
$ git checkout release/v1.17.0
$ cd ..
$ pip install -e PyHEADTAIL
Please note that the parallel multi-bunch simulations require a parallel HDF5 installation (you can find instructions on installation from source here).
After cloning the repository and creating a python 3 Anaconda environment, one needs additional packages to be able to compile the code. The following set of commands might work:
$ conda install clang clangdev libclang clangxx clang_osx-64
$ conda install gfortran_osx-64 libgfortran
$ conda activate <MY_PYTHON3_ENV>
$ pip install cython h5py
$ cd PyHEADTAIL
$ make
$ pip install -e.
If you wish to contribute, please feel free to open pull requests. @lmether, @aoeftiger, @like2000