* Fix check --all using wrong CTest directory Two issues caused 'fprime-util check --all' to run CTest against the wrong directory (e.g. build-cache/F-Prime instead of the build root): 1. _load_build_cache_locations fallback ordering put F-Prime/ before the build root. When the project root's relative path is '.', both locations match, and F-Prime won due to being checked first. Reordered so the build root is checked first. 2. SpecificBuildTargetEnumerator (used for global --all targets) returned the caller-supplied context_path as the enumerated context. Changed to return builder.cmake_root (the project root) since these are global targets that should resolve relative to the project. Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov> * Add comment explaining critical ordering of build cache locations Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov> * Shorten ordering comment Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: michael.d.starch <michael.d.starch@jpl.nasa.gov>
F´ Tools
A package containing tools to work with F´. Installation can be done using:
pip install fprime-tools
Issues for these tools should be reported here: File an issue
See also: https://fprime.jpl.nasa.gov to see the F´ framework.
Developer Installation
In order to install a branch not released on PIP, follow these steps:
- Clone this repo or the developer fork containing the desired branch
- Checkout the desired branch
- Remove previous installation with
pip uninstall fprime-tools - Install local checkout with
pip install .
Developers can add the -e flag when local changes need to affect the tool install immediately. -e links the current directory into the PIP
install rather than copying the files over thus allowing local edits to affect the installed tools. This is commonly done during the development cycle.
Installing devel
These instructions will install the devel branch without allowing local edits to affect the installation.
git clone https://github.com/fprime-community/fprime-tools.git
cd fprime-tools
git checkout devel
pip uninstall fprime-tools
pip install .
Black Formatter
To automatically format code, the Black Formatter can be installed with:
pip install black
Then it can be run on the project using:
black ./