I’m trying to force my users to have to install
wheel when they try to install my project for local development. However, it appears pip tries to build wheels for packages even when wheel is not available. I don’t know why it does this. So I added
wheel to the
pyproject.toml as seen below:
[build-system] requires = ["setuptools>=46.0", "wheel"] build-backend = "setuptools.build_meta"
This does not install wheel. Instead, it goes ahead without wheel and produces a warning akin to this:
Could not build wheels for <package>, since package 'wheel' is not installed.
I heard that the build environment is isolated from the main environment. What exactly does this mean?
I’ve created a self-contained MVCE to show how to reproduce this warning here:
Simply clicking “run” should show you the warning highlighted in pink. I feel I am misunderstanding the purpose of
pyproject.toml as defined in PEP 518. Any guidance appreciated!