Skip to content

fix(packaging): rename _jit_sources to _jit-sources to suppress setuptools warnings#250

Merged
isytwu merged 1 commit intomainfrom
fix/jit-sources-packaging-warnings
Apr 3, 2026
Merged

fix(packaging): rename _jit_sources to _jit-sources to suppress setuptools warnings#250
isytwu merged 1 commit intomainfrom
fix/jit-sources-packaging-warnings

Conversation

@isytwu
Copy link
Copy Markdown
Collaborator

@isytwu isytwu commented Apr 3, 2026

Summary

  • Rename _jit_sources/ to _jit-sources/ so setuptools no longer treats bundled C++/HIP source directories as implicit namespace packages
  • Add umbp_master and spdk_proxy build artifacts to .gitignore

Details

Since PR #182 introduced _copy_jit_sources(), every pip install -e produces dozens of "Package would be ignored" warnings from setuptools. The root cause is that _jit_sources is a valid Python identifier, so Python 3.3+ namespace package rules make every subdirectory appear importable. Using a hyphenated name (_jit-sources) breaks str.isidentifier(), which is exactly what setuptools checks.

Test plan

  • BUILD_UMBP=ON BUILD_TESTS=ON pip install -e . --no-build-isolation -v produces no "Package would be ignored" warnings
  • python -c "from mori.jit.config import get_mori_source_root; print(get_mori_source_root())" still resolves correctly

…tools warnings

The hyphenated name is not a valid Python identifier, preventing
setuptools from treating the bundled C++/HIP source directories as
implicit namespace packages.
@isytwu isytwu requested a review from jhchouuu April 3, 2026 02:31
@isytwu isytwu self-assigned this Apr 3, 2026
Copy link
Copy Markdown
Collaborator

@jhchouuu jhchouuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@isytwu isytwu merged commit 87870d2 into main Apr 3, 2026
3 of 4 checks passed
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