Skip to content

Commit da3cac3

Browse files
authored
Add explicit version range of required Python (#2634)
The PR adds explicit requirement on Python version needed by CMake. The version range is aligned with supported Python versions.
1 parent b27efff commit da3cac3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The release drops support for Python 3.9, making Python 3.10 the minimum require
2121

2222
* Silenced `pybind11` CMake message due to using compatibility mode for Python [#2614](https://github.com/IntelPython/dpnp/pull/2614)
2323
* Changed the license from `BSD-2-Clause` to `BSD-3-Clause` [#2593](https://github.com/IntelPython/dpnp/pull/2593)
24+
* Defined explicit versions range of the Python interpreter which is needed during the build [#2634](https://github.com/IntelPython/dpnp/pull/2634)
2425

2526
### Deprecated
2627

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ endif()
7979
include(GNUInstallDirs)
8080

8181
# find Python before enabling pybind11
82-
find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
82+
find_package(Python 3.10...<3.15 REQUIRED COMPONENTS Development.Module NumPy)
8383

8484
# Fetch pybind11
8585
include(FetchContent)

0 commit comments

Comments
 (0)