What breaks if you omit --no-build-isolation with editable installs? #628
-
The doc page on Editable Installs says that "packages installed in editable mode are rebuilt on import", and that failure to use However, in my experience running Here's my sample project: https://github.com/inklesspen/meson-python-cffi-example Perhaps the breakage occurs with features I've not yet used? Or perhaps this is intended for versions of pip older than 21.3? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
The issue is that you have to manually install build dependencies because the ones originally installed during the build got uninstalled. Also: they may be different versions which means that you may need to reconfigure the build anyway. Worse dependencies may have been originally detected and cached in a location that doesn't exist and doesn't work anymore, resulting in the build failing. |
Beta Was this translation helpful? Give feedback.
Thank you, that is indeed reproducible and all makes sense. The one issue in my explanation above is that
cffi
didn't actually go missing, but that is because you also declared it as a runtime dependency withdependencies = ['cffi']
so it does end up inmyvenv
. You can check that declared build-only deps don't actually get preserved in yourexample.working
with: