Skip to content

Commit

Permalink
Updated topdir CMakeLists.txt to handle iPOPO versions
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Claudino <claudinodc@ornl.gov>
  • Loading branch information
danclaudino committed Aug 27, 2024
1 parent a03ca8d commit 1a8fe00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ find_package(Python COMPONENTS Interpreter Development)
if(PIP_EXISTS EQUAL "0")
# we have pip, son just install ipopo
message(STATUS "${BoldGreen}Installing Pelix OSGi framework.${ColorReset}")
execute_process(COMMAND ${Python_EXECUTABLE} -m pip install ipopo)
# iPOPO 3.0 only works with python 3.10+
if(${Python_VERSION} VERSION_GREATER_EQUAL 3.10.0)
execute_process(COMMAND ${Python_EXECUTABLE} -m pip install ipopo)
else()
execute_process(COMMAND ${Python_EXECUTABLE} -m pip install ipopo==1.0.2)
endif()
else()
# we dont have pip, so warn the user
message(STATUS "${BoldYellow}Pelix Framework not found, but can't install via pip. Ensure you install ipopo module before using XACC Python API.${ColorReset}")
Expand Down

0 comments on commit 1a8fe00

Please sign in to comment.