Subject: [bug#29856] [PATCH core-updates] guix: python-build-system: Modify ".py" files in-place.

From: Marius Bakke <[email-masked]>
Date: Sun, 31 Dec 2017 16:02:30 +0100

Danny Milosavljevic <[email-masked]> writes:

> On Tue, 26 Dec 2017 14:10:13 -0500
> Leo Famulari <[email-masked]> 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 <https://bugs.gnu.org/29824>.  "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?