Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env: validate PEP 508 specifiers before passing them as arguments to pip
Per the specification for pyproject.toml build-system.requires, these MUST be valid PEP 508 strings, and when checking to see if they are satisfied during --no-isolation builds, they will be parsed using `packaging.requirements` which checks this for free as a side effect of converting each string into a good format for checking against importlib.metadata dists. But when building by default, they are just pip installed and pip supports many things that aren't just PEP 508 strings. Fix this by first parsing them with `packaging.requirements` just to get the error message.
- Loading branch information