Skip to content

chore: Add maturin import hook for development #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2025

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Apr 23, 2025

The main problem here is if I manually develop a release build for testing

> uv run maturin develop -m obstore/Cargo.toml --release

then the maturin import hook will still rebuild with a debug wheel when I start Python:

>>> import obstore
building "obstore"
rebuilt and loaded package "obstore" in 5.832s
<frozen importlib._bootstrap>:228: RuntimeWarning: obstore has not been compiled in release mode. Performance will be degraded.

@kylebarron kylebarron changed the title Add maturin import hook for development chore: Add maturin import hook for development May 21, 2025
@kylebarron kylebarron enabled auto-merge (squash) May 21, 2025 21:04
@kylebarron kylebarron merged commit bc914f1 into main May 21, 2025
6 checks passed
@kylebarron kylebarron deleted the kyle/add-maturin-import-hook branch May 21, 2025 21:06
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