For such systems, I think it'd be a kindness to include, perhaps in the
build procedure, a provision for hardwiring in the path to the executable.
For instance, you could have code that goes something like
exepath = isexec($argv) ? $argv : EXEPATH;
with maybe the Makefile going -DEXEPATH=$(DESTDIR)/bin/python.
Or maybe it should come from the environment, and /usr/local/bin/python
could be a wrapper script that sets up the needed environment variable.