Developer Installation#
To do development work you need to clone the source code from GitHub and install in editable mode.
Important
If you are not a maintainer of the code and have write permissions to the repository you need to first fork the repository.**
Clone the repository (or your fork)
The repository uses submodules so they also need to be initialized. This can be done in the same step by including
--recurse-submodules.Example usage:
git clone --recurse-submodules https://github.com/python-accelerator-middle-layer/pyaml.git
Make a virtual environment and activate it. It needs to use >= Python 3.11.
Install the code in editable mode including development dependencies.
cd pyaml pip install -e .[dev]
Install the pre-commit hooks.
pre-commit install
Install control system bindings (optional)
If you want to use control system bindings you need to also install the packages for the bindings you want to use. Follow the installation instructions in the corresponding repository.
If you want to do development work on the bindings they need to be installed in editable mode, but if not you can install the latest release from PyPI.
Install dummy control system for TANGO (optional)
If you want to test the TANGO bindings without requiring a live machine or virtual accelerator you can install the dummy TANGO control system available in
tests/dummy-cs/tango. It is a simple emulation that allows to check the interface to the control system. The control system doesn’t do anything and is only intended for tests during development.