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

Update sip_helper to use python header dirs #12

Merged
merged 2 commits into from
Jul 2, 2014

Conversation

NikolausDemmel
Copy link
Contributor

This fixes ros-visualization/qt_gui_core#46 and ros-visualization/rviz#788; needed at least on OS X, likely some other platforms as well.

This fixes ros-visualization/qt_gui_core#46 and ros-visualization/rviz#788; needed at least on OS X, likely some other platforms as well.
@@ -7,6 +7,7 @@ set(__PYTHON_QT_BINDING_SIP_HELPER_DIR ${CMAKE_CURRENT_LIST_DIR})

find_package(PythonInterp REQUIRED)
assert(PYTHON_EXECUTABLE)
find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add the folllowing line before this:

set(Python_ADDITIONAL_VERSIONS "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")

It ensures that find_package() is able to find the specified Python version - even if the version number is unknown in the PythonLibs CMake config file.

@NikolausDemmel
Copy link
Contributor Author

Addressed your comment and also added the specific version for PythonInterp.

@dirk-thomas
Copy link
Contributor

Great, thanks for the patch.

dirk-thomas added a commit that referenced this pull request Jul 2, 2014
Update sip_helper to use python header dirs
@dirk-thomas dirk-thomas merged commit dfce230 into ros-visualization:groovy-devel Jul 2, 2014
@NikolausDemmel NikolausDemmel deleted the patch-1 branch July 2, 2014 17:31
@NikolausDemmel
Copy link
Contributor Author

I see you released this for indigo. Can we get it into hydro as well? Or is this on the agenda already?

@dirk-thomas
Copy link
Contributor

When several days have past after an Indigo release of a repo I will consider all patches for backport to Hydro. The idea is that if any regressions appear on Indigo it doesn't effect Hydro immediately.

This one can definitely be backported.

Update: it has been released into Hydro in ros/rosdistro@240e1aa

severin-lemaignan referenced this pull request in severin-lemaignan/robotpkg Aug 18, 2014
Changes since 0.2.11:

0.2.14 (2014-07-10)
-------------------
* add Python_ADDITIONAL_VERSIONS and ask for specific version of PythonInterp
* fix finding specific version of PythonLibs with CMake 3 (`#11
<https://github.com/ros-visualization/python_qt_binding/issues/11>`_)
* fix sip_helper to use python header dirs on OS X (`#12
<https://github.com/ros-visualization/python_qt_binding/issues/12>`_)

0.2.13 (2014-05-07)
-------------------
* fix sip arguments when path contains spaces

0.2.12 (2014-01-08)
-------------------
* python 3 compatibility
* fix sip bindings when paths contain spaces (`#9
<https://github.com/ros-visualization/python_qt_binding/issues/9>`_)
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.

2 participants