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

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


The following commit(s) were added to refs/heads/main by this push:
     new a072ddc5d0c IGNITE-27534 Python DBAPI Driver: Fix wheels building for 
Windows (#7396)
a072ddc5d0c is described below

commit a072ddc5d0cdb03a6d4142d96ba68fb9313d01d0
Author: Igor Sapego <[email protected]>
AuthorDate: Tue Jan 13 14:14:52 2026 +0100

    IGNITE-27534 Python DBAPI Driver: Fix wheels building for Windows (#7396)
---
 .github/workflows/python_dbapi_wheels.yml | 1 +
 modules/platforms/python/CMakeLists.txt   | 1 +
 modules/platforms/python/setup.py         | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/.github/workflows/python_dbapi_wheels.yml 
b/.github/workflows/python_dbapi_wheels.yml
index d8dccd213d1..b0a8e8feb75 100644
--- a/.github/workflows/python_dbapi_wheels.yml
+++ b/.github/workflows/python_dbapi_wheels.yml
@@ -4,6 +4,7 @@ on:
   push:
     paths:
       - 'modules/platforms/python/**'
+      - '.github/workflows/python_dbapi_wheels.yml'
 
   workflow_dispatch:
 
diff --git a/modules/platforms/python/CMakeLists.txt 
b/modules/platforms/python/CMakeLists.txt
index 932cc867249..2a8c337c4cc 100644
--- a/modules/platforms/python/CMakeLists.txt
+++ b/modules/platforms/python/CMakeLists.txt
@@ -25,6 +25,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(Python_FIND_VIRTUALENV FIRST)
 find_package(Python3 COMPONENTS Interpreter Development)
 
+message("Python3_ROOT_DIR:${Python3_ROOT_DIR}")
 message("Python3_FOUND:${Python3_FOUND}")
 message("Python3_VERSION:${Python3_VERSION}")
 message("Python3_Development_FOUND:${Python3_Development_FOUND}")
diff --git a/modules/platforms/python/setup.py 
b/modules/platforms/python/setup.py
index 72539ed8ea6..cae67736aae 100644
--- a/modules/platforms/python/setup.py
+++ b/modules/platforms/python/setup.py
@@ -89,6 +89,7 @@ class CMakeBuild(build_ext):
             ext_dir = 
os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
             cfg = 'Release'
             ext_file = 
os.path.splitext(os.path.basename(self.get_ext_filename(ext.name)))[0]
+            python_dir = os.path.dirname(sys.executable) if sys.executable 
else ""
 
             cmake_args = [
                 f'-DCMAKE_BUILD_TYPE={cfg}',
@@ -96,6 +97,7 @@ class CMakeBuild(build_ext):
                 
f'-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_{cfg.upper()}={self.build_temp}',
                 f'-DEXTENSION_FILENAME={ext_file}',
                 f'-DIGNITE_VERSION={cmake_project_version(version)}',
+                f'-DPython3_ROOT_DIR={python_dir}'
             ]
 
             if platform.system() == 'Windows':

Reply via email to