Added --single-version-externally-managed during python package build (#19177)

This commit is contained in:
Ilya Lavrenov 2023-08-14 17:45:23 +04:00 committed by GitHub
parent e77070890a
commit 1ffab2fe30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -336,8 +336,8 @@ if(ENABLE_PYTHON_PACKAGING)
--prefix "${python_package_prefix}"
--install-lib "${install_lib}"
--install-scripts "${python_package_prefix}/bin"
# --single-version-externally-managed
# --record=installed.txt
--single-version-externally-managed
--record=installed.txt
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
DEPENDS ${ov_setup_py_deps}
COMMENT "Create python package with ${meta_info_subdir} folder")

View File

@ -199,6 +199,7 @@ class PrebuiltExtension(Extension):
nln = "\n"
raise DistutilsSetupError(f"PrebuiltExtension can accept only one source, but got: {nln}{nln.join(sources)}")
super().__init__(name, sources, *args, **kwargs)
self._needs_stub = False
class CustomBuild(build):