Use FindPython3.cmake (#19847)
* Use FindPython3.cmake
* Fixed compilation on macOS 14 with new core development tools
* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION
* Use Development.Module
* Keep specifying only Python3_EXECUTABLE
* Print PYTHON_MODULE_EXTENSION
* Added check for minimal cmake version for python API
* Returned Python3_INCLUDE_DIR for cross-compilation case
* Try to allow cmake older than 3.18
* Use build python interpreter to check cython dependency
* revert changes in .ci/openvino-onnx/Dockerfile
* removed unused code
* Fixed issue with variables scope
* Experiment: remove include dirs
* Corrected docs
* Use pybind11 function to set extension
* Revert "Experiment: remove include dirs"
This reverts commit 6f7f90211c.
* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)
* Refactor ConvolutionBackpropDataLayerTest
* Refactor ConvolutionLayerTest
* Refactor DeformableConvolutionLayerTest
* Apply comments
* Apply comments
* Fix
* Updated minimum cmake version for Windows
* Simplified check
* Removed useless message status
* Use puiblic option
---------
Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
This commit is contained in:
1 parent
7852b44c5f
commit
8349849e1c
53 files changed
+237
-238
No files matched your search
@@ -72,11 +72,9 @@ You can use the following additional build options:
|
||||
```sh
|
||||
pip install -r requirements-dev.txt
|
||||
```
|
||||
2. Enable the `-DENABLE_PYTHON=ON` option in the CMake step above (Step 4). To specify an exact Python version, use the following options:
|
||||
2. Enable the `-DENABLE_PYTHON=ON` option in the CMake step above (Step 4). To specify an exact Python version, use the following options (requires cmake 3.16 and higher):
|
||||
```
|
||||
-DPYTHON_EXECUTABLE=`which python3.8` \
|
||||
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so \
|
||||
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8
|
||||
-DPython3_EXECUTABLE=/usr/bin/python3.8
|
||||
```
|
||||
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
|
||||
```sh
|
||||
|
||||
@@ -43,9 +43,7 @@ git clone --recurse-submodules --single-branch --branch=master https://github.co
|
||||
via `pip3`, adding the following options:
|
||||
```sh
|
||||
-DENABLE_PYTHON=ON \
|
||||
-DPYTHON_EXECUTABLE=/usr/bin/python3.8 \
|
||||
-DPYTHON_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.8.so \
|
||||
-DPYTHON_INCLUDE_DIR=/usr/include/python3.8
|
||||
-DPython3_EXECUTABLE=/usr/bin/python3.8
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
@@ -55,11 +55,9 @@ Supported configurations:
|
||||
```sh
|
||||
pip install -r <openvino>\src\bindings\python\src\compatibility\openvino\requirements-dev.txt
|
||||
```
|
||||
2. Second, enable the `-DENABLE_PYTHON=ON` in the CMake (Step #4) option above. To specify an exact Python version, use the following options:
|
||||
2. Second, enable the `-DENABLE_PYTHON=ON` in the CMake (Step #4) option above. To specify an exact Python version, use the following options (requires cmake 3.16 and higher):
|
||||
```sh
|
||||
-DPYTHON_EXECUTABLE="C:\Program Files\Python11\python.exe" ^
|
||||
-DPYTHON_LIBRARY="C:\Program Files\Python11\libs\python11.lib" ^
|
||||
-DPYTHON_INCLUDE_DIR="C:\Program Files\Python11\include"
|
||||
-DPython3_EXECUTABLE="C:\Program Files\Python11\python.exe"
|
||||
```
|
||||
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user