Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/python_dbapi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- 'modules/platforms/python/**'
- '.github/workflows/python_dbapi_wheels.yml'

workflow_dispatch:

Expand Down
1 change: 1 addition & 0 deletions modules/platforms/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 2 additions & 0 deletions modules/platforms/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ def build_extensions(self):
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}',
f'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{cfg.upper()}={ext_dir}',
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':
Expand Down
Loading