Skip to content

Commit

Permalink
DOC: mention --import-mode=importlib for editable installs
Browse files Browse the repository at this point in the history
No idea what this really does, but apparently it does something. See the discussion around #179 (comment)
  • Loading branch information
ev-br authored Dec 17, 2024
1 parent 6b40b35 commit adea1a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ $ pytest build-install/lib/python3.10/site-packages/scipy/ --doctest-modules

instead of `$ pytest --pyargs scipy`.

If push comes to shove, you may try using the magic env variable:
If you use actual editable installs, of the `pip install --no-build-isolation -e .` variety, you may
need to add `--import-mode=importlib` to the `pytest` invocation.

If push really comes to shove, you may try using the magic env variable:
` PY_IGNORE_IMPORTMISMATCH=1 pytest ...`,
however the need usually indicates an issue with the package itself.
(see [gh-107](https://github.com/scipy/scipy_doctest/pull/107) for an example).
Expand Down

0 comments on commit adea1a4

Please sign in to comment.