Skip to content

Commit dc3dffb

Browse files
committed
dropped python 2.7 support
1 parent 48c6532 commit dc3dffb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ if(NOT APPLE)
7373
find_package(Python3 3.6 COMPONENTS Interpreter Development)
7474
if(Python3_FOUND)
7575
set(boost_python_component "python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}")
76-
else()
77-
# Backwards compatible. Can be removed once the Python3 recipe is stable
78-
message(WARNING "Python 3 was not found: falling back to Python 2")
79-
find_package(Python2 2.7 COMPONENTS Development REQUIRED)
80-
set(boost_python_component "python27")
8176
endif()
8277
endif()
8378

@@ -99,7 +94,6 @@ target_sources(ALF PRIVATE
9994
src/AlfServer.cxx
10095
src/DimServices/DimServices.cxx
10196
src/DimServices/ServiceNames.cxx
102-
$<$<BOOL:${Python2_FOUND}>:src/PythonInterface.cxx>
10397
$<$<BOOL:${Python3_FOUND}>:src/PythonInterface.cxx>
10498
)
10599

@@ -116,8 +110,6 @@ set(LINK_LIBS
116110
AliceO2::ReadoutCard
117111
AliceO2::Common
118112
Boost::boost
119-
$<$<BOOL:${Python2_FOUND}>:Boost::python27>
120-
$<$<BOOL:${Python2_FOUND}>:Python2::Python>
121113
$<$<BOOL:${Python3_FOUND}>:Boost::python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}>
122114
$<$<BOOL:${Python3_FOUND}>:Python3::Python>
123115
)

0 commit comments

Comments
 (0)