Skip to content

Commit a301038

Browse files
Updated build docs for Python API (openvinotoolkit#22134)
* Updated build docs for Python API * Removed legacy variables * Update docs/dev/build_windows.md Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> --------- Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
1 parent ab8dc10 commit a301038

File tree

5 files changed

+8
-19
lines changed

5 files changed

+8
-19
lines changed

cmake/packaging/rpm.cmake

-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ macro(ov_cpack_settings)
276276
ov_rpm_add_rpmlint_suppression("${python_component}"
277277
# all directories
278278
"non-standard-dir-perm /usr/lib64/${pyversion}/site-packages/openvino/*"
279-
"non-standard-dir-perm /usr/lib64/${pyversion}/site-packages/ngraph/*"
280279
)
281280
endif()
282281

docs/dev/build_linux.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The software was validated on:
5151
4. OpenVINO Runtime uses a CMake-based build system. In the created `build` directory, run `cmake` to fetch project dependencies and create Unix makefiles, then run `make` to build the project:
5252
```sh
5353
cmake -DCMAKE_BUILD_TYPE=Release ..
54-
make --jobs=$(nproc --all)
54+
cmake --build . --parallel
5555
```
5656
The process may take some time to finish.
5757

@@ -68,19 +68,15 @@ You can use the following additional build options:
6868
- OpenVINO offers several CMake options that can be used to build a custom OpenVINO runtime, which can speed up compilation. These options allow you to skip compilation of other plugins and frontends by disabling/enabling them. You can find a list of available options [here](https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/cmake_options_for_custom_compilation.md)
6969

7070
- To build the OpenVINO Runtime Python API:
71-
1. Install all additional packages (e.g., cython and opencv) listed in the `/src/bindings/python/src/compatibility/openvino/requirements-dev.txt` file:
72-
```sh
73-
pip install -r requirements-dev.txt
74-
```
75-
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):
71+
1. 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):
7672
```
7773
-DPython3_EXECUTABLE=/usr/bin/python3.8
7874
```
79-
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
75+
2. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
8076
```sh
8177
pip install -r <openvino source tree>/src/bindings/python/wheel/requirements-dev.txt
8278
```
83-
4. After the build process finishes, export the newly built Python libraries to the user environment variables:
79+
3. After the build process finishes, export the newly built Python libraries to the user environment variables:
8480
```
8581
export PYTHONPATH=<openvino_repo>/bin/intel64/Release/python:$PYTHONPATH
8682
export LD_LIBRARY_PATH=<openvino_repo>/bin/intel64/Release:$LD_LIBRARY_PATH

docs/dev/build_raspbian.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ git clone --recurse-submodules --single-branch --branch=master https://github.co
3939
## Additional Build Options
4040

4141
- To build Python API, install `libpython3-dev:armhf` and `python3-pip`
42-
packages using `apt-get`; then install `numpy` and `cython` python modules
43-
via `pip3`, adding the following options:
42+
packages using `apt-get`; add the following options:
4443
```sh
4544
-DENABLE_PYTHON=ON \
4645
-DPython3_EXECUTABLE=/usr/bin/python3.8

docs/dev/build_windows.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,15 @@ Supported configurations:
5151
### Additional Build Options
5252

5353
- To build the OpenVINO Runtime Python API:
54-
1. First, install all additional packages (e.g., cython) listed in the file:
55-
```sh
56-
pip install -r <path\to\openvino>\src\bindings\python\src\compatibility\openvino\requirements-dev.txt
57-
```
58-
2. Second, enable the `-DENABLE_PYTHON=ON` in the CMake (Step #3) option above. To specify an exact Python version, use the following options (requires cmake 3.16 and higher):
54+
1. Enable the `-DENABLE_PYTHON=ON` in the CMake (Step #3) option above. To specify an exact Python version, use the following options (requires cmake 3.16 and higher):
5955
```sh
6056
-DPython3_EXECUTABLE="C:\Program Files\Python11\python.exe"
6157
```
62-
3. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
58+
2. To build a wheel package (.whl), enable the `-DENABLE_WHEEL=ON` option in the CMake step above (Step 4), and install requirements:
6359
```sh
6460
pip install -r <openvino source tree>\src\bindings\python\wheel\requirements-dev.txt
6561
```
66-
4. After the build process finishes, export the newly built Python libraries to the user environment variables:
62+
3. After the build process finishes, export the newly built Python libraries to the user environment variables:
6763
```
6864
set PYTHONPATH=<openvino_repo>/bin/<arch>/Release/python;%PYTHONPATH%
6965
set OPENVINO_LIB_PATHS=<openvino_repo>/bin/<arch>/Release;%OPENVINO_LIB_PATH%

src/bindings/python/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ macro(ov_define_setup_py_dependencies)
281281

282282
list(APPEND ov_setup_py_deps
283283
${openvino_py_files}
284-
${compat_ngraph_py_files}
285284
"${CMAKE_CURRENT_SOURCE_DIR}/wheel/setup.py"
286285
"${OpenVINOPython_SOURCE_DIR}/requirements.txt"
287286
"${OpenVINOPython_SOURCE_DIR}/wheel/readme.txt"

0 commit comments

Comments
 (0)