#3 Remove build dependency on python2-Cython
Merged 4 years ago by jeckersb. Opened 4 years ago by pviktori.
rpms/ pviktori/PyYAML no-py2-cython  into  master

file modified
+7 -3
@@ -1,6 +1,6 @@ 

  Name:           PyYAML

  Version:        5.1.1

- Release:        1%{?dist}

+ Release:        2%{?dist}

  %global uversion %{version}

  Summary:        YAML parser and emitter for Python

  
@@ -13,7 +13,6 @@ 

  

  BuildRequires:  python2-devel

  BuildRequires:  python2-setuptools

- BuildRequires:  python2-Cython

  

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools
@@ -73,9 +72,11 @@ 

  

  

  %build

- %py2_build

  %py3_build

  

+ # py2_build reuses Cython output from py3_build

+ %py2_build

+ 

  

  %install

  %py2_install
@@ -99,6 +100,9 @@ 

  

  

  %changelog

+ * Mon Jul 15 2019 Petr Viktorin <pviktori@redhat.com> - 5.1.1-2

+ - Remove build dependency on python2-Cython

+ 

  * Fri Jun  7 2019 John Eckersberg <eck@redhat.com> - 5.1.1-1

  - New upstream release 5.1.1 (rhbz#1718110)

  

Remove build dependency on python2-Cython

The output of Cython doesn't depend on the interpreter that runs it, so files from py3_build can be reused for the Python 2 build.

This should help break up one of the build/test dependency cycles involving python2 versions of popular packages: Cython, PyYAML, pip, six, pytest, setuptools.

Pull-Request has been merged by jeckersb

4 years ago