After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736870 - Refer to python2 in shebang lines (PEP 394)
Refer to python2 in shebang lines (PEP 394)
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
2.41.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-09-18 10:10 UTC by Javier Jardón (IRC: jjardon)
Modified: 2018-02-08 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Refer to python2 in shebang lines (3.38 KB, patch)
2014-09-18 10:11 UTC, Javier Jardón (IRC: jjardon)
none Details | Review

Description Javier Jardón (IRC: jjardon) 2014-09-18 10:10:47 UTC
IF not build fails in distros that python == python3
Comment 1 Javier Jardón (IRC: jjardon) 2014-09-18 10:11:46 UTC
Created attachment 286460 [details] [review]
Refer to python2 in shebang lines
Comment 2 Emmanuele Bassi (:ebassi) 2014-09-18 10:20:42 UTC
select * from "distros" where "name" is "Arch".

personally, I think Arch should just give up being the only one breaking Python code.
Comment 3 Frederic Peters 2014-09-19 12:21:00 UTC
As that won't happen the mess had to be cleaned up upsteam in Python. That gave PEP 394 and the recommendation to use python2 in shebang lines, glib should follow that.
Comment 4 Frederic Peters 2014-09-19 12:21:53 UTC
(s/glib/gobject-introspection/ in the particular case of this bug.)
Comment 5 Simon Feltman 2014-09-20 05:49:29 UTC
I'm curious which file was causing the build failure?

The files in the patch seem to be either maintainer scripts (update-glib-annotations.py, verbump.py), modules in which the shebang probably isn't needed (docwriter.py, message.py, scannermain.py, shlibs.py), or testing related (gen-gitestoffsets, pep8.py).

If there is something user facing or testing related which needs this, another option would be pass it through autoconf with a shebang of: #!@PYTHON@
This is what the other user facing scripts in the project use (g-ir-scanner.in, g-ir-doc-tool.in).
Comment 6 André Klapper 2015-02-07 17:22:27 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 7 Emmanuele Bassi (:ebassi) 2018-01-25 14:20:03 UTC
Is this still an issue? AFAIR, the ancillary tools can work with both Python 2 and Python 3.
Comment 8 GNOME Infrastructure Team 2018-02-08 12:30:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/115.