Use pipenv run in bb test to use python libraries. Copy src folder aswell,...

Description

  • If python libraries are not installed globally, executing a python module will fail, since it cannot find the python libraries. Use pipenv to directly use the python libraries installed in the virtual environment.
  • Python modules need their src directories. These are now copied into the temp folder aswell.

Important: This only works, if the python libraries are compiled from within the aircraft_design folder. Compiling from unicado-package won't work - then a new virtual environment would be created - which is empty - and no libraries would be found.

Testing Instructions

  1. From within aircraft design: cmake -B build -S . --preset x64-windows-release --fresh -DBUILD_BLACKBOXTESTS=ON
  2. cmake --build --preset x64-windows-release -t install_python_packages
  3. cmake --build --preset x64-windows-release --target blackbox_tank_design -j16 (You need to checkout the feature_bb_test_tank_design)

Developer Checklist

  • Code has been tested locally and/or in pipeline.
  • (if applicable) documentation updated.
  • (if applicable) impact of new dependencies reviewed and included in project.
  • Merge conflicts resolved with the target branch.

Merge request reports

Loading