Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Miscellaneous maintenance and small features. I can split these out into separate PRs if you prefer.
Medium
usercustomize.py
sitecustomize.py
directly, andsite info
helps them find it.site install
(more useful now that there are presets to choose from)maturin_import_hook
cannot be imported (previously if the user uninstalls the import hook an error would be printed)Small
uv
in tests instead ofpip
when available (replacingvirtualenv
command)maturin.rs
documentation in the READMEFileNotFoundError
inmaturin_import_hook version
commandUsercustomize.py
Reading the site module documentation, the difference between
usercustomize
andsitecustomize
isn't totally clear.The distinction is more important when using the system python installation, because
site-packages
is not user-writable without root.usercustomize.py
can be found at~/.local/pythonX.Y/site-packages/usercustomize.py
(by default) so it's shared between interpreters. By default, virtualenvs do not look here and usually the virtualenv is user-writable so usingsitecustomize.py
is not a problem. It still makes sense to havesitecustomize.py
as the default location I think but it's nice to have the option of using either.