Skip to content

Latest commit

 

History

History
75 lines (41 loc) · 1.73 KB

README-dev.md

File metadata and controls

75 lines (41 loc) · 1.73 KB

Flighgear Orchestrator Development

Linux

python -m fgo.agent

Requirements

Ubuntu 18.04 LTS: sudo apt install python3.7 python3.7-venv

Virtualenv

Initial Creation: virtualenv -p $(which python3.7) venv

Activation: source ./venv/bin/activate

Windows

Requirements

Download and install:

  1. Python 3.7 x64 web installer

  2. Insomnia GraphQL client

  3. Cmder Terminal Emulator (includes git, vim, bash)

  4. Install virtualenv: pip install virtualenv

Virtualenvs

Initial Creation: virtualenv venv

Activation: venv/Scripts/activate

Installation of packages: pip install -r requirements-dev.txt

Starting the server

Using cmd or cmder:

(venv) λ python -m fgo.cli agent

Note: the Werkzeug reloader interferes with thread-shared data, so instructions on setting the environment to development have been removed.

QtDesigner

This is required to edit the forms.

Windows

Install as above for development dependencies.

OSX

brew install pyqt5

To locate the Designer:

$ find / -iname designer -type f 2>/dev/null
/usr/local/Cellar/qt/5.14.2/libexec/Designer.app/Contents/MacOS/Designer

Ubuntu 20.04

Install with sudo apt-get install -y qttools5-dev-tools then run designer

References

Flask CLI Stack Overflow: Cannot install pyqt5-tools - 'Could not find a version that satisfies the requirement pyqt5-tools'