Skip to content

Commit 74fcc3c

Browse files
committed
address review: fix sdist detection, code-block lang, add PoC disclaimers
1 parent 2b0b69e commit 74fcc3c

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

docs/articles_en/get-started/install-openvino/configurations/troubleshooting-install-config.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Troubleshooting Guide for OpenVINO™ Installation & Configuration
3838

3939
.. dropdown:: ``pip install --no-binary openvino openvino`` fails
4040

41+
.. note::
42+
43+
Source distribution (sdist) installation is experimental. For most users, the
44+
recommended path is ``pip install openvino`` (prebuilt wheel).
45+
4146
Installation from source distribution requires local build tools and Python build dependencies.
4247
Before retrying installation, update your packaging tools:
4348

docs/articles_en/get-started/install-openvino/install-openvino-pip.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ Use the following command to install either the base or GenAI OpenVINO package:
9292
9393
If you want to install from source distribution (sdist), use the following command:
9494

95-
.. code-block:: python
95+
.. code-block:: sh
9696
9797
python -m pip install --no-binary openvino openvino
9898
9999
.. note::
100100

101-
Installing from source distribution requires build tools and may take more time
102-
than wheel-based installation.
101+
Installing from source distribution is experimental (PoC) and requires a full
102+
native build toolchain (C/C++ compiler, CMake, Python headers). It may take
103+
significantly more time than wheel-based installation. For most users, the
104+
prebuilt wheel installation shown above is the recommended option.
103105

104106
Step 5. Verify that the Package Is Installed
105107
++++++++++++++++++++++++++++++++++++++++++++

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
OPENVINO_SOURCE_DIR = os.getenv("OPENVINO_SOURCE_DIR", SCRIPT_DIR)
5050
OPENVINO_BINARY_DIR = os.getenv("OPENVINO_BINARY_DIR", f'{OPENVINO_SOURCE_DIR}/build_wheel')
5151
OPENVINO_PYTHON_BINARY_DIR = os.getenv("OPENVINO_PYTHON_BINARY_DIR", "python_build")
52-
SDIST_BUILD = "sdist" in sys.argv
52+
# Detect sdist context: either we are running `setup.py sdist` to create the archive,
53+
# or we are building from an unpacked sdist (PKG-INFO is generated by sdist)
54+
SDIST_BUILD = "sdist" in sys.argv or (SCRIPT_DIR / "PKG-INFO").is_file()
5355
CONFIG = os.getenv("BUILD_TYPE", "Release")
5456
OV_RUNTIME_LIBS_DIR = os.getenv("OV_RUNTIME_LIBS_DIR", f"runtime/{LIBS_DIR}/{ARCH}")
5557
TBB_LIBS_DIR = os.getenv("TBB_LIBS_DIR", f"runtime/3rdparty/tbb/{LIBS_DIR}")

0 commit comments

Comments
 (0)