On 14/03/2023 2:15 pm, Andrew Cooper wrote: > diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile > index 29ad0513212f..04b3995cc0f6 100644 > --- a/tools/pygrub/Makefile > +++ b/tools/pygrub/Makefile > @@ -7,7 +7,7 @@ PY_LDFLAGS = $(SHLIB_LDFLAGS) $(APPEND_LDFLAGS) > INSTALL_LOG = build/installed_files.txt > > setup.py = CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" > LDFLAGS="$(PY_LDFLAGS)" \ > - $(PYTHON) setup.py > + $(PYTHON) setup.py --executable="$(PYTHON_PATH) -s"
/sigh CI has gone a wall of red to this. Apparently --executable is only known by setuputils, not distutils. Which is a problem because it means the main pygrub executable won't get a corrected shebang, as it doesn't pass through install-wrap. In the short term, I could fix that by moving the main pygrub binary out of setup.py and do it manually. Thoughts? ~Andrew