Skip to content

Commit 6d0ebc9

Browse files
authored
1 parent 6fb68c0 commit 6d0ebc9

File tree

5 files changed

+13
-374
lines changed

5 files changed

+13
-374
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ CMakeUserPresets.json
3333
# Python-specific
3434
*.?env*
3535
*.pyc
36-
.env
3736
__pycache__

.gitmodules

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[submodule "thirdparty/openvino_tokenizers"]
22
path = thirdparty/openvino_tokenizers
33
url = https://github.com/openvinotoolkit/openvino_tokenizers.git
4-
branch = master

assets/style.css

-319
This file was deleted.

src/python/CMakeLists.txt

+13-13
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ FetchContent_Declare(
99
URL_HASH SHA256=bf8f242abd1abcd375d516a7067490fb71abd79519a282d22b6e4d19282185a7
1010
)
1111
FetchContent_GetProperties(pybind11)
12-
if(NOT pybind11_POPULATED)
13-
FetchContent_Populate(pybind11)
14-
# search for FindPython3.cmake instead of legacy modules
15-
set(PYBIND11_FINDPYTHON ON)
16-
# the following two calls are required for cross-compilation
17-
if(OpenVINODeveloperPackage_DIR)
18-
ov_find_python3(REQUIRED)
19-
ov_detect_python_module_extension()
12+
# search for FindPython3.cmake instead of legacy modules
13+
set(PYBIND11_FINDPYTHON ON)
14+
# the following two calls are required for cross-compilation
15+
if(OpenVINODeveloperPackage_DIR)
16+
ov_find_python3(REQUIRED)
17+
ov_detect_python_module_extension()
18+
else()
19+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
20+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
2021
else()
21-
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
22-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
23-
else()
24-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
25-
endif()
22+
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
2623
endif()
24+
endif()
25+
if(NOT pybind11_POPULATED)
26+
FetchContent_Populate(pybind11)
2727
add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR})
2828
endif()
2929

0 commit comments

Comments
 (0)