build: Console scripts not available during build
When building, console scripts paths are not injected into the path hence console scripts are not available during build.
Example:
When cmake is installed, cmake.exe is not on path, leading to error during when when cmake is invoked with subprocess.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (21 by maintainers)
Commits related to this issue
- build: ensure console scripts are available on PATH during build (#221) Fixes #221. Resolves #214. — committed to pypa/build by gaborbernat 3 years ago
I literally ran into this immediately after posting! š
Iām hitting it in https://github.com/scikit-hep/awkward-1.0/pull/683, but you can just use the cmake_example from pybind11:
Will produce:
The workaround I mentioned does work:
But it should be in the path.
Just released 0.2.0.