Skip to content

Commit

Permalink
obs-scripting: Remove Python version upper limit on Linux
Browse files Browse the repository at this point in the history
Also removes it for FreeBSD and OpenBSD
  • Loading branch information
tytan652 committed May 1, 2024
1 parent 3ab71a9 commit 4bf45a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions deps/obs-scripting/cmake/python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if(ENABLE_SCRIPTING_PYTHON)

if(OS_WINDOWS)
find_package(Python 3.8...<3.11 REQUIRED Interpreter Development)
elseif(
OS_LINUX
OR OS_FREEBSD
OR OS_OPENBSD)
find_package(Python 3.8 REQUIRED Interpreter Development)
else()
find_package(Python 3.8...<3.12 REQUIRED Interpreter Development)
endif()
Expand Down
8 changes: 7 additions & 1 deletion deps/obs-scripting/obspython/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ if(POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()

find_package(Python 3.8...<3.12 REQUIRED Interpreter Development)
if(OS_LINUX
OR OS_FREEBSD
OR OS_OPENBSD)
find_package(Python 3.8 REQUIRED Interpreter Development)
else()
find_package(Python 3.8...<3.12 REQUIRED Interpreter Development)
endif()
find_package(SWIG 4 REQUIRED)

include(UseSWIG)
Expand Down

0 comments on commit 4bf45a1

Please sign in to comment.