Skip to content

Commit

Permalink
Merge pull request #152 from ros2/python35
Browse files Browse the repository at this point in the history
require Python 3.5
  • Loading branch information
dirk-thomas authored Jun 15, 2016
2 parents 1f681cc + 589f579 commit d00ffc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions python_cmake_module/cmake/Modules/FindPythonExtra.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@

set(PythonExtra_FOUND FALSE)

# NOTE(esteve): required for CMake-2.8 in Ubuntu 14.04
set(Python_ADDITIONAL_VERSIONS 3.4)
find_package(PythonInterp 3.4 REQUIRED)
find_package(PythonInterp 3.5 REQUIRED)

if(PYTHONINTERP_FOUND)
if(APPLE)
Expand Down Expand Up @@ -129,7 +127,7 @@ if(PYTHONINTERP_FOUND)
set(PythonExtra_LIBRARIES "${PYTHON_LIBRARY}")
message(STATUS "Using PythonExtra_LIBRARIES: ${PythonExtra_LIBRARIES}")
else()
find_package(PythonLibs 3.4 REQUIRED)
find_package(PythonLibs 3.5 REQUIRED)
message(STATUS "Using PYTHON_INCLUDE_DIRS: ${PYTHON_INCLUDE_DIRS}")
message(STATUS "Using PYTHON_LIBRARIES: ${PYTHON_LIBRARIES}")
set(PythonExtra_INCLUDE_DIRS "${PYTHON_INCLUDE_DIRS}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ find_package(rosidl_generator_c REQUIRED)
find_package(rmw_implementation_cmake REQUIRED)
find_package(rmw REQUIRED)

# NOTE(esteve): required for CMake-2.8 in Ubuntu 14.04
set(Python_ADDITIONAL_VERSIONS 3.4)
find_package(PythonInterp 3.4 REQUIRED)
find_package(PythonInterp 3.5 REQUIRED)

find_package(python_cmake_module REQUIRED)
find_package(PythonExtra MODULE)
Expand Down

0 comments on commit d00ffc2

Please sign in to comment.