Added --single-version-externally-managed during python package build (#19177)
This commit is contained in:
parent
e77070890a
commit
1ffab2fe30
@ -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")
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user