Bug 1472495 - gobject-introspection: Switch to Python 3
gobject-introspection: Switch to Python 3
Status: NEW
Product: Fedora
Classification: Fedora
Component: gobject-introspection (Show other bugs)
27
All Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Colin Walters
Fedora Extras Quality Assurance
:
Depends On:
Blocks: PYTHON3 PYTHON3-UPSTREAM
  Show dependency treegraph
 
Reported: 2017-07-18 19:18 EDT by Matías Zúñiga
Modified: 2017-08-15 03:28 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matías Zúñiga 2017-07-18 19:18:32 EDT
As stated in bug 635231, comment 32, upstream supports Python 3, so a Python 3 package should be provided. I open a separate bug, as the last one was only about updating the package (first read comments 32 to 36 from the previous bug).

Version is rawhide because i'm not sure if this can be pushed to fc26

(In reply to Tomas Orsava from bug 635231, comment 36)
> Just to clarify, while it seems the logical solution that the Python part is
> indeed only used internally, this page [0] claims that gobject-introspection
> « provides » a "Python package to create and parse the GIR format".
> 
> That would imply that the Python package is to be accessible by other
> packages and/or users. And that'd mean we should provide both Python 2 and
> Python 3 version.
> 
> [0]
> https://wiki.gnome.org/Projects/GObjectIntrospection#Contents_of_the_package

gobject-introspection provides some files (g-ir-annotation-tool, g-ir-doc-tool, g-ir-scanner) that are python scripts. I think that they are the "Python package", but they should not be used as libraries.

The library seems to be for internal use, an because of that they are not installed at site-packages. The python path used by the 'binaries' is determined at build time [0]

[0] https://git.gnome.org/browse/gobject-introspection/commit/?id=427e28ff942bad9a3a19d316912c40e39085a5bd
Comment 1 Matías Zúñiga 2017-07-19 10:03:03 EDT
As a note: debian switched to python 3 [0] without maintaining a python 2 package

[0] https://packages.qa.debian.org/g/gobject-introspection/news/20160713T165802Z.html
Comment 2 Jan Kurik 2017-08-15 03:28:27 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Note You need to log in before you can comment on or make changes to this bug.