This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch ignite-27645
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/ignite-27645 by this push:
     new c222d3e413e IGNITE-27645 Fix CMake version
c222d3e413e is described below

commit c222d3e413e762ddfd5e3d958ac8fea38b0027dc
Author: Igor Sapego <[email protected]>
AuthorDate: Tue Feb 3 04:32:58 2026 +0100

    IGNITE-27645 Fix CMake version
---
 modules/platforms/python/setup.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/platforms/python/setup.py 
b/modules/platforms/python/setup.py
index cae67736aae..dd87b52bea4 100644
--- a/modules/platforms/python/setup.py
+++ b/modules/platforms/python/setup.py
@@ -14,6 +14,7 @@
 # limitations under the License.
 import os
 import platform
+import re
 import subprocess
 import setuptools
 import sys
@@ -52,11 +53,11 @@ with open(os.path.join(PACKAGE_NAME, '_version.txt'), 'r') 
as fd:
 
 def cmake_project_version(version):
     """
-    Strips the pre-release portion of the project version string to satisfy 
CMake requirements
+    Strips the extra portion of the project version string to satisfy CMake 
requirements
     """
-    dash_index = version.find("-")
-    if dash_index != -1:
-        return version[:dash_index]
+    end_index = re.search(r"\d+\.\d+\.\d+", version).end()
+    if end_index != -1:
+        return version[:end_index]
     return version
 
 def _get_env_variable(name, default='OFF'):

Reply via email to