Skip to content

chore: Add maturin import hook for development#430

Merged
kylebarron merged 3 commits into
mainfrom
kyle/add-maturin-import-hook
May 21, 2025
Merged

chore: Add maturin import hook for development#430
kylebarron merged 3 commits into
mainfrom
kyle/add-maturin-import-hook

Conversation

@kylebarron

@kylebarron kylebarron commented Apr 23, 2025

Copy link
Copy Markdown
Member

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