Skip to content

Commit 35764f3

Browse files
authored
Merge pull request #181 from scipy/ev-br-patch-1
DOC: mention `--import-mode=importlib` for editable installs
2 parents e3fdfbf + adea1a4 commit 35764f3

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
@@ -323,7 +323,10 @@ $ pytest build-install/lib/python3.10/site-packages/scipy/ --doctest-modules
323323

324324
instead of `$ pytest --pyargs scipy`.
325325

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

0 commit comments

Comments
 (0)