Browse Source

makewheel: add pandac/input/*.in interrogatedb files

These are present in the normal SDK builds and are useful for analyzing the API, for example for generating FFI code or generating API documentation.
rdb 6 years ago
parent
commit
e1df400f87
1 changed files with 7 additions and 0 deletions
  1. 7 0
      makepanda/makewheel.py

+ 7 - 0
makepanda/makewheel.py

@@ -665,6 +665,13 @@ __version__ = '{0}'
         if file.endswith('.py'):
             whl.write_file('pandac/' + file, os.path.join(pandac_dir, file))
 
+    # Let's also add the interrogate databases.
+    input_dir = os.path.join(pandac_dir, 'input')
+    if os.path.isdir(input_dir):
+        for file in os.listdir(input_dir):
+            if file.endswith('.in'):
+                whl.write_file('pandac/input/' + file, os.path.join(input_dir, file))
+
     # Add a panda3d-tools directory containing the executables.
     entry_points = '[console_scripts]\n'
     entry_points += 'eggcacher = direct.directscripts.eggcacher:main\n'