Skip to content

[Fix] Replace PythonInterp to Python3 COMPONENTS#108

Merged
clalancette merged 1 commit intoros-visualization:mainfrom
homalozoa:main
Nov 29, 2021
Merged

[Fix] Replace PythonInterp to Python3 COMPONENTS#108
clalancette merged 1 commit intoros-visualization:mainfrom
homalozoa:main

Conversation

@homalozoa
Copy link
Copy Markdown
Contributor

As description in https://cmake.org/cmake/help/v3.12/module/FindPythonLibs.html and https://cmake.org/cmake/help/v3.12/module/FindPythonInterp.html . Using find_package(PythonLib) and find_package(PythonInterp) are deprecated.

Also, ${PYTHON_VERSION_MAJOR} and ${PYTHON_VERSION_MINOR} are not result variables of FindPython3. ${Python3_VERSION}, ${Python3_VERSION_MAJOR} and ${Python3_VERSION_MINOR} are new variables.

Signed-off-by: Homalozoa nx.tardis@gmail.com

@cottsay
Copy link
Copy Markdown
Member

cottsay commented Nov 12, 2021

This appears to resolve recent issues I'm seeing on Fedora and RHEL 8.5. Thanks for the patch!

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-RHEL Build Status
  • macOS Build Status
  • Windows Build Status

@cottsay cottsay added the bug label Nov 12, 2021
Copy link
Copy Markdown
Member

@cottsay cottsay left a comment

Choose a reason for hiding this comment

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

The warnings on RHEL are expected and not related to this change.

Thanks for the patch!

@cottsay cottsay requested a review from sloretz November 13, 2021 00:30
1. Replace PythonInterp & PythonLibs to COMPONENTS
2. Replace PYTHON_INCLUDE_DIRS to Python3_INCLUDE_DIRS
3. Replace PYTHON_EXECUTABLE to Python3_EXECUTABLE

Signed-off-by: Homalozoa <nx.tardis@gmail.com>
@cottsay
Copy link
Copy Markdown
Member

cottsay commented Nov 23, 2021

Fresh CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-RHEL Build Status
  • macOS Build Status
  • Windows Build Status

I'd be fascinated to know why the other CI run didn't fail, but successfully resolved the issue on RHEL.

@clalancette
Copy link
Copy Markdown
Contributor

All of the failures are in qt_dotgraph, and are there on the nightlies. So I'm going to go ahead and merge this, thanks for the contribution.

@clalancette clalancette merged commit dbf553b into ros-visualization:main Nov 29, 2021
@cottsay
Copy link
Copy Markdown
Member

cottsay commented Dec 2, 2021

@Mergifyio backport galactic-devel
😮‍💨 Fine, I'll do it myself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants