Skip to content

Commit

Permalink
chore: moving python package to a subdirectory
Browse files Browse the repository at this point in the history
It is needed to prevent import errors as the repo root sometimes gets
into the PYTHONPATH, e.g. when python interactive is used. In that
case the native extension may not be loadable.

See also PyO3/maturin#490
  • Loading branch information
vlaci committed May 14, 2023
1 parent 302c62b commit c358545
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ build-backend = "maturin"

[tool.maturin]
module-name = "unblob_native._native"
python-source = "python"

features = [
"pyo3/extension-module", # This is an extension module
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c358545

Please sign in to comment.