Skip to content

Commit

Permalink
Include aircraft's Systemssub-directory in the wheel packages (issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoconni committed Aug 20, 2022
1 parent e60d870 commit 3dc7902
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 3dc7902

Please sign in to comment.