Skip to content
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

Add a Python import hook #729

Merged
merged 1 commit into from
Dec 6, 2021
Merged

Add a Python import hook #729

merged 1 commit into from
Dec 6, 2021

Conversation

messense
Copy link
Member

@messense messense commented Dec 3, 2021

Usage:

from maturin import import_hook

# install the import hook
import_hook.install()

# start import maturin based projects
import pyo3_pure

2021-12-03 22 50 36

Part of #657

TODO:

  • Fix mixed Rust/Python projects import
  • Add support for single .rs file?

@netlify
Copy link

netlify bot commented Dec 3, 2021

✔️ Deploy Preview for maturin-guide canceled.

🔨 Explore the source changes: ac16e94

🔍 Inspect the deploy log: https://app.netlify.com/sites/maturin-guide/deploys/61adf1148869b6000724f6f8

@messense messense merged commit aebc91e into PyO3:main Dec 6, 2021
@messense messense deleted the import-hook branch December 6, 2021 12:39
wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this pull request Jan 3, 2022
* Add support for repairing cross compiled linux wheels in [#754](PyO3/maturin#754)
* Add support for `manylinux_2_28` and `manylinux_2_31` in [#755](PyO3/maturin#755)
* Remove existing so file first in `maturin develop` command to avoid triggering SIGSEV in running process in [#760](PyO3/maturin#760)

* Fix docs for `new` and `init` commands in `maturin --help` in [#734](PyO3/maturin#734)
* Add support for x86_64 Haiku in [#735](PyO3/maturin#735)
* Fix undefined auditwheel policy panic in [#740](PyO3/maturin#740)
* Fix sdist upload for packages where the pkgname contains multiple underscores in [#741](PyO3/maturin#741)
* Implement auditwheel repair with patchelf in [#742](PyO3/maturin#742)
* Add `Cargo.lock` to sdist when `--locked` or `--frozen` specified in [#749](PyO3/maturin#749)
* Infer readme file if not specified in [#751](PyO3/maturin#751)

* Add a `maturin init` command as a companion to `maturin new` in [#719](PyO3/maturin#719)
* Don't package non-path-dep crates in sdist for workspaces in [#720](PyO3/maturin#720)
* Build release packages with `password-storage` feature in [#725](PyO3/maturin#725)
* Add support for x86_64 DargonFly BSD in [#727](PyO3/maturin#727)
* Add a Python import hook in [#729](PyO3/maturin#729)
* Allow pip warnings in `maturin develop` command in [#732](PyO3/maturin#732)
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