We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--import-mode=importlib
1 parent 6b40b35 commit adea1a4Copy full SHA for adea1a4
README.md
@@ -310,7 +310,10 @@ $ pytest build-install/lib/python3.10/site-packages/scipy/ --doctest-modules
310
311
instead of `$ pytest --pyargs scipy`.
312
313
-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
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:
317
` PY_IGNORE_IMPORTMISMATCH=1 pytest ...`,
318
however the need usually indicates an issue with the package itself.
319
(see [gh-107](https://github.com/scipy/scipy_doctest/pull/107) for an example).
0 commit comments