Skip to content

Scope KOMPUTE_BUILD_PYTHON to Python module and fix fmt include in Tensor.cpp#464

Closed
eunos-1128 wants to merge 1 commit intoKomputeProject:masterfrom
eunos-1128:fix/conda-packageing
Closed

Scope KOMPUTE_BUILD_PYTHON to Python module and fix fmt include in Tensor.cpp#464
eunos-1128 wants to merge 1 commit intoKomputeProject:masterfrom
eunos-1128:fix/conda-packageing

Conversation

@eunos-1128
Copy link
Copy Markdown

@eunos-1128 eunos-1128 commented Apr 29, 2026

This PR addresses issues discovered during conda packaging.

It scopes the KOMPUTE_BUILD_PYTHON compile definition to the Python module target only, fixes incorrectly mapped logging macros in Logger.hpp for Python builds, and adds missing fmt library includes in Manager.cpp and Tensor.cpp.


This pull request makes targeted improvements to how the Python build option is handled and updates an include in the Tensor.cpp source file. The main changes are:

Build configuration improvements:

  • Moved the definition of KOMPUTE_BUILD_PYTHON so that it is now only set for the Python module build, rather than globally for all builds. This is done by removing the definition from the main CMakeLists.txt and adding it specifically to the Python module's CMakeLists.txt using target_compile_definitions. [1] [2]

Source file update:

  • Added the fmt/format.h header include to src/Tensor.cpp, likely to support new or existing formatting functionality.

@eunos-1128 eunos-1128 changed the title Fix build system, logging macros, and missing fmt includes for Python/conda packaging Fix build system, logging macros, and missing fmt includes for conda packaging Apr 29, 2026
@eunos-1128 eunos-1128 changed the title Fix build system, logging macros, and missing fmt includes for conda packaging Scope KOMPUTE_BUILD_PYTHON to Python module and fix fmt include in Tensor.cpp Apr 29, 2026
…nclude in Tensor.cpp

Signed-off-by: UENO, M. <eunosium-1128@live.jp>
@eunos-1128 eunos-1128 force-pushed the fix/conda-packageing branch from f23fd66 to 63608a3 Compare May 1, 2026 14:06
@axsaucedo axsaucedo closed this May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants