Open froody opened 3 months ago
Just a quick note, but I think the recently added exec toolchain should help here. This was added for precompiling stuff, but it should be also applicable here.
The exec toolchain shouldn't come into play. The relationship is whl_filegroup has cfg=exec dependency on py_binary //python/private/whl_filegroup:extract_wheel_files
.
That py_binary, through toolchain resolution, should end up matching the 3.10 toolchain mentioned in the MODULE.bazel. If it's trying to use /usr/bin/env python3
, then it's probably ending up in the autodetecting toolchain somehow.
--toolchain_resolution_debug=.*python:toolchain_type.*
? (this will be long, so please attach it as a file instead)
π bug report
Affected Rule
The issue is caused by the rule:
whl_filegroup
Is this a regression?
No
Description
The
whl_filegroup
rule runs a python script, but this script depends on/usr/bin/env python3
which in my case isn't present, even though I've set a default python toolchain.π¬ Minimal Reproduction
π₯ Exception or Error
π Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?