Bug 1437185 - gdal: gdal-python3 is missing Python 3 version of executables
Summary: gdal: gdal-python3 is missing Python 3 version of executables
Alias: None
Product: Fedora
Classification: Fedora
Component: gdal
Version: 27
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-03-29 17:16 UTC by Iryna Shcherbina
Modified: 2018-10-14 07:34 UTC (History)
10 users (show)

Fixed In Version: gdal-2.3.2-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-10-14 07:34:32 UTC

Attachments (Terms of Use)

Description Iryna Shcherbina 2017-03-29 17:16:21 UTC
The Python 3 subpackage gdal-python3 is missing executables available in the Python 2 subpackage.

According to the Fedora Packaging guidelines for Python [0], if a Python package that supports Python 3 installs executables into /usr/bin,  then either both Python versions of the executables should be packaged, or only the Python 3 version, depending on the functionality they provide.
(Note the "should": having Python 2-only executables is permitted, but strongly discouraged.)

Is it intentional for this particular package?

In case it is not intentional, please provide a Python 3 version of executable, or you can just switch to Python 3 if the functionality is the same regardless of the Python version. The guide for porting Python-based RPMs is available here [1] and you may refer to it for more instructions.

It's ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 26 as well.

If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing the issue!

[0] https://fedoraproject.org/wiki/Packaging:Python#Avoiding_collisions_between_the_python_2_and_python_3_stacks
[1] http://python-rpm-porting.readthedocs.io/

Comment 1 Jan Kurik 2017-08-15 07:17:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 Iryna Shcherbina 2017-09-29 13:49:41 UTC
Besides this, with the latest update the gdal-2.2.2-1 RPM gained a dependency on Python 2, due to a shebang in the newly added script /usr/bin/ogrmerge.py. As gdal seems to support Python 3 upstream since version 1.7, can it be switched to Python 3?

Comment 3 Pavel Raiskup 2018-10-14 07:34:32 UTC
Executables are moved to 'gdal-python-tools', and built against Python 3
only.  https://src.fedoraproject.org/rpms/gdal/pull-request/8

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