#3 Fix Python 2 dependency from python3-cheetah
Closed 6 years ago by ishcherb. Opened 6 years ago by ishcherb.
rpms/ ishcherb/python-cheetah master  into  master

file modified
+7 -1
@@ -2,7 +2,7 @@ 

  

  Name:           python-cheetah

  Version:        3.0.0

- Release:        17%{?dist}

+ Release:        18%{?dist}

  Summary:        Template engine and code generator

  

  Group:          Development/Libraries
@@ -70,6 +70,9 @@ 

  %install

  %if 0%{?with_python2}

  %py2_install

+ # Delete the Python 2 executable(s) so that the Python 3

+ # version(s) can take their place afterwards.

+ rm %{buildroot}%{_bindir}/*

  %endif

  

  pushd %{py3dir}
@@ -106,6 +109,9 @@ 

  %{python3_sitearch}/

  

  %changelog

+ * Fri Jan 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.0.0-18

+ - Fix Python 2 dependency from python3-cheetah

+ 

  * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.4-17

  - Python 2 binary package renamed to python2-cheetah

    See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

The python3-cheetah RPM requires both Python 2 and Python 3.

python3-cheetah contains a Python 2 executable, as it sometimes does not get overridden in the %install section [0], and thus drugs in Python 2 as a dependency:

$ dnf --disablerepo=* --enablerepo=rawhide repoquery --requires python3-cheetah
/usr/bin/python2
python(abi) = 3.6
...

[0] https://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#install

Pull-Request has been closed by ishcherb

6 years ago