29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 3f1a626fbe09504c05c5ecec47beb6aa6498d87f Mon Sep 17 00:00:00 2001
|
|
From: Mattias Ellert <mattias.ellert@physics.uu.se>
|
|
Date: Fri, 13 Mar 2026 08:58:40 +0100
|
|
Subject: [PATCH] Avoid additional python version file to wrong location
|
|
|
|
(cherry picked from commit 3db196516a2073b3f20e9b82019818a6bef23b01)
|
|
---
|
|
bindings/pyroot/pythonizations/CMakeLists.txt | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/bindings/pyroot/pythonizations/CMakeLists.txt b/bindings/pyroot/pythonizations/CMakeLists.txt
|
|
index 40207644a41..68b632c2ae0 100644
|
|
--- a/bindings/pyroot/pythonizations/CMakeLists.txt
|
|
+++ b/bindings/pyroot/pythonizations/CMakeLists.txt
|
|
@@ -157,9 +157,10 @@ endforeach()
|
|
|
|
# The Python version at build time should be easy to figure out from Python, so
|
|
# we can raise an exception if the used Python version is not compatible.
|
|
+# The file will be implicitly installed by install(DIRECTORY ...) in the
|
|
+# ROOT_PYTHON_PACKAGE function.
|
|
set(python_version_file "${localruntimedir}/ROOT/_python_version.py")
|
|
file(WRITE "${python_version_file}" "_root_python_version = \"${Python3_VERSION}\"\n")
|
|
-install(FILES "${python_version_file}" DESTINATION "${CMAKE_INSTALL_PYTHONDIR}")
|
|
|
|
# A custom target that depends on the Python sources being present in the build
|
|
# directory. This will be used as a dependency of the pythonization libraries,
|
|
--
|
|
2.53.0
|
|
|