-
Notifications
You must be signed in to change notification settings - Fork 938
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
[windows][master] Use .pyd
as the output suffix for Python module on Windows.
#1637
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem of handling the separate suffixes looks like cmake should provide an abstraction for it already, given that this is required for all python modules on windows everywhere.
However, it looks like the patch you provide is still the standard way to handle this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, I approve this PR.
What about introducing a cmake macro that marks a library target as a python lib, which allows to hide the complexity / boringness of these three lines behind a single line:
mark_target_as_python_extension(TARGET)
The macro should be defined by ros_core and thus would be automatically included by all packages that depend on ros_core.
On the other hand, this hiding might be not desired. And we might have name clashes if other packages will define such a macro as well.
Sounds like a good idea, I'm not sure you will find someone to review such an addition for I would propose to merge this request nonetheless until such a feature becomes available somewhere. |
Sorry, I meant |
Merging with two approvals. @rhaschke I do not really like the idea of adding this macro only within MoveIt. |
The
.pyd
is the file extension for Python extension modules on Windows. This change is to fix the file extension on Windows.