Skip to content

Commit adea1a4

Browse files
authored
DOC: mention --import-mode=importlib for editable installs
No idea what this really does, but apparently it does something. See the discussion around #179 (comment)
1 parent 6b40b35 commit adea1a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ $ pytest build-install/lib/python3.10/site-packages/scipy/ --doctest-modules
310310

311311
instead of `$ pytest --pyargs scipy`.
312312

313-
If push comes to shove, you may try using the magic env variable:
313+
If you use actual editable installs, of the `pip install --no-build-isolation -e .` variety, you may
314+
need to add `--import-mode=importlib` to the `pytest` invocation.
315+
316+
If push really comes to shove, you may try using the magic env variable:
314317
` PY_IGNORE_IMPORTMISMATCH=1 pytest ...`,
315318
however the need usually indicates an issue with the package itself.
316319
(see [gh-107](https://github.com/scipy/scipy_doctest/pull/107) for an example).

0 commit comments

Comments
 (0)