Skip to content

Comments

Add proper Python packaging#676

Open
adeebshihadeh wants to merge 6 commits intomasterfrom
fix_packages
Open

Add proper Python packaging#676
adeebshihadeh wants to merge 6 commits intomasterfrom
fix_packages

Conversation

@adeebshihadeh
Copy link
Contributor

Summary

  • Add [build-system] to pyproject.toml (setuptools backend)
  • Move dev/build deps to [project.optional-dependencies]
  • Add MANIFEST.in for proper source distribution of C++/Cython files
  • Export BASEDIR and INCLUDE_PATH from init.py for consumers

Test plan

  • pip install -e . works
  • python -c "import msgq; print(msgq.BASEDIR)" works

🤖 Generated with Claude Code

Add build-system section, move dev deps to optional, add MANIFEST.in
for C++/Cython source distribution, and export BASEDIR/INCLUDE_PATH
from __init__.py for consumers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
adeebshihadeh and others added 5 commits February 21, 2026 10:45
Allow `import msgq` to succeed even when Cython extensions aren't
built yet, so SConstruct can access BASEDIR/INCLUDE_PATH during
build configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add setup.py with Extension definitions for ipc_pyx and visionipc_pyx
Cython extensions so they compile during `pip install -e .`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The try/except ImportError pattern in __init__.py (needed for scons
build configuration) makes ty think Cython-exported symbols might
not exist. Suppress possibly-missing-attribute since these are all
from compiled Cython modules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cython extensions are always built by pip install now, so the
try/except guard is no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant