There is an updated pull request by ahesford against master on the void-packages repository https://github.com/ahesford/void-packages hooks https://github.com/void-linux/void-packages/pull/21132 Make python3 default in 03-rewrite-pyton-shebang.sh hook The `03-rewrite-python-shebang.sh` hook assumes `python2` by default, overriding only if `python_version` or `pycompile_version` are set, or the package installs some modules in `/usr/lib/python*`. Not all packages that install Python scripts set these variables or install modules, so the shebang is forced to `python2` by default. Because `python2` is EOL, I think it is sensible to assume these packages are doing the right thing and targeting `python3` instead. A patch file from https://github.com/void-linux/void-packages/pull/21132.patch is attached