From 3dc79020b01c798426a5a83dc4af166dce632c73 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Wed, 27 Jul 2022 02:23:35 +0200 Subject: [PATCH] Include aircraft's `Systems`sub-directory in the wheel packages (issue #687) --- python/setup.py.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/setup.py.in b/python/setup.py.in index 43cb4105cd..e50d02c670 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -214,6 +214,14 @@ for d in os.scandir('data/aircraft'): data_files.append(('share/${PROJECT_NAME}/'+dir_name, list(XML_files(dir_name)))) + # Some aircraft folders include a `Systems` sub-directory: make sure it + # is copied in the wheel archive. + systems_dir = dir_name + '/Systems' + systems_dir_fullname = os.path.join('data', systems_dir) + if os.path.exists(systems_dir_fullname) and os.path.isdir(systems_dir_fullname): + data_files.append(('share/${PROJECT_NAME}/'+systems_dir, + list(XML_files(systems_dir)))) + # Build & installation process for the JSBSim Python module setup( name="${PROJECT_NAME}",