Skip to content

What breaks if you omit --no-build-isolation with editable installs? #628

Answered by rgommers
inklesspen asked this question in Q&A
Discussion options

You must be logged in to vote

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 with dependencies = ['cffi'] so it does end up in myvenv. You can check that declared build-only deps don't actually get preserved in your example.working with:

$ docker run --rm -it example:working bash
$ /home/builder/myvenv/bin/python3 -c "import cffi"  # works, because also a runtime dep
$ /home/builder/myvenv/bin/python3 -c "import mesonpy"  # build-only dep, so went missing
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@inklesspen
Comment options

@rgommers
Comment options

@inklesspen
Comment options

@rgommers
Comment options

Answer selected by inklesspen
@inklesspen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants