Improve SWIG Module Type Sharing for Enhanced Interoperability #1918
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces two key updates to the
pyalicevisioncodebase: enforcing a specific module loading order in__init__.pyand updating SWIG module declarations across multiple files to use thepackagedirective instead ofmodule. These changes improve module organization and compatibility with Python packaging standards.Module Loading Order:
src/aliceVision/__init__.pyto enforce a specific loading order by explicitly importinggeometry,sfmData, andsfmDataIOmodules. This ensures dependencies are loaded in the correct sequence.SWIG Module Declaration Updates:
%module (module="pyalicevision")with%module (package="pyalicevision")in the following files to align with Python package standards:src/aliceVision/camera/Camera.isrc/aliceVision/feature/feature.isrc/aliceVision/geometry/Geometry.isrc/aliceVision/hdr/Hdr.isrc/aliceVision/image/image.isrc/aliceVision/matching/matching.isrc/aliceVision/matchingImageCollection/matchingImageCollection.isrc/aliceVision/numeric/numeric.isrc/aliceVision/sensorDB/SensorDB.isrc/aliceVision/sfmData/SfMData.isrc/aliceVision/sfmDataIO/SfMDataIO.isrc/aliceVision/stl/Stl.isrc/aliceVision/track/track.iDependency Import:
%import <aliceVision/geometry/Pose3.i>insrc/aliceVision/sfmData/CameraPose.ito ensure required dependencies are explicitly imported.