From HFML-FELIX Wiki
Python packages on gitlab.science.ru.nl
[edit | edit source]- linux_daemon - library to create a linux daemon
- felix_mqtt - library for mqtt communications according to FELIX standards
- MQTT_daemon - library combining the above for rapid deployment of a new daemon that communicates via MQTT
Installing
[edit | edit source]You will need an account for gitlab.science.ru.nl (a science login will suffice).
- (only required on Machine network:) export HTTPS_PROXY=http://integrator:3128
python v2
[edit | edit source]sudo -EH pip install git+https://gitlab.science.ru.nl/felix/linux_daemon.git sudo -EH pip install git+https://gitlab.science.ru.nl/felix/felix_mqtt.git sudo -EH pip install git+https://gitlab.science.ru.nl/felix/mqtt_daemon.git
python v3
[edit | edit source]https
[edit | edit source]pip3 install git+https://gitlab.science.ru.nl/felix/linux_daemon.git@python-v3 pip3 install git+https://gitlab.science.ru.nl/felix/felix_mqtt.git@python-v3 pip3 install git+https://gitlab.science.ru.nl/felix/mqtt_daemon.git@python-v3
pip3 install git+https://gitlab.science.ru.nl/felix/windows_daemon.git
or in venv
./bin/pip3 install git+https://gitlab.science.ru.nl/felix/linux_daemon.git@python-v3 git+https://gitlab.science.ru.nl/felix/felix_mqtt.git@python-v3 git+https://gitlab.science.ru.nl/felix/mqtt_daemon.git@python-v3
ssh
[edit | edit source]pip3 install git+ssh://git@gitlab.science.ru.nl/felix/linux_daemon.git@python-v3 pip3 install git+ssh://git@gitlab.science.ru.nl/felix/felix_mqtt.git@python-v3 pip3 install git+ssh://git@gitlab.science.ru.nl/felix/mqtt_daemon.git@python-v3
or all at once in venv
./bin/pip3 install git+ssh://git@gitlab.science.ru.nl/felix/linux_daemon.git@python-v3 git+ssh://git@gitlab.science.ru.nl/felix/felix_mqtt.git@python-v3 git+ssh://git@gitlab.science.ru.nl/felix/mqtt_daemon.git@python-v3
Hints
[edit | edit source]- For running python services on windows, you need the binary distribution of pywin32.
- For a relative python3 virtualenv shebang, see https://zameermanji.com/blog/2022/9/17/specifying-a-relative-interpreter-in-a-shebang/