Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable Python bindings for Windows and macOS #311

Merged
merged 22 commits into from
Jan 30, 2024

Conversation

christian-rauch
Copy link
Collaborator

@christian-rauch christian-rauch commented Jan 22, 2024

The FindPythonLibs module has been deprecated since CMake 3.12. The newer FindPython provides a better and more portable way to build Python modules without the need for a dedicated script to determine the system configuration. This allows us now to build the Python bindings on Windows and macOS. This PR also changes the install path for the resulting Python module from the "user site" to something determined by the given CMake install path. This allows us to properly install the Python bindings when distributing binary packages.

Addresses #267 (comment).

@christian-rauch christian-rauch force-pushed the test_shared_off branch 5 times, most recently from e4f417b to 5724814 Compare January 22, 2024 19:39
@christian-rauch christian-rauch changed the title test shared/static and Release/Debug on CI enable Python bindings for Windows and macOS Jan 24, 2024
@christian-rauch
Copy link
Collaborator Author

@mkrogius @wxmerkt In order to make the Python bindings usable for binary distributed packages and other OSes, the "breaking change" in this PR is the install location for the Python module. I assume you are ok with this, as the new install location is the proper path determined from the CMake install path.

@mkrogius
Copy link
Contributor

For sure!

@christian-rauch christian-rauch merged commit 7a47a11 into AprilRobotics:master Jan 30, 2024
22 checks passed
@christian-rauch christian-rauch deleted the test_shared_off branch January 30, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants