Danny Milosavljevic writes: > On Tue, 26 Dec 2017 14:10:13 -0500 > Leo Famulari wrote: > >> On Tue, Dec 26, 2017 at 01:21:05PM +0100, Danny Milosavljevic wrote: >> > * guix/build/python-build-system.scm (wrap-python-program): New variable. >> > (wrap-program*): New variable. >> > (wrap): Use wrap-program*. >> >> The idea here is to avoid renaming the Python executables to .foo-real, >> right? > > Yes, especially since Python itself sometimes imports those and then it's tripping over the bash script when it expected a Python script. I wonder if this will fix . "meson" is not installed with a .py extension, but I guess we can call wrap-program* on it. Would it work to peek at the shebang instead of the file extension?