From 71d79214e881ee33ccf9fb84f102eef3e2510dae Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Nov 23 2019 13:45:44 +0000 Subject: Don't build python 2 extensions for Fedora >= 32 --- diff --git a/eclipse-pydev.spec b/eclipse-pydev.spec index 0654888..90c2c02 100644 --- a/eclipse-pydev.spec +++ b/eclipse-pydev.spec @@ -6,7 +6,7 @@ Epoch: 1 Summary: Eclipse Python development plug-in Name: eclipse-pydev Version: 7.4.0 -Release: 1%{?dist} +Release: 2%{?dist} License: EPL-1.0 URL: http://pydev.org @@ -80,8 +80,13 @@ Requires: python3-pycodestyle # For building native debugging extensions for both python 2 and 3 %if 0%{?fedora} -BuildRequires: python2-devel python3-devel -BuildRequires: python2-Cython python3-Cython +BuildRequires: python3-devel +BuildRequires: python3-Cython +%if 0%{?fedora} < 32 +# Cython for python 2 was removed in F32+ +BuildRequires: python2-devel +BuildRequires: python2-Cython +%endif %endif %description @@ -187,10 +192,10 @@ pushd plugins/org.python.pydev.core/pysrc &>/dev/null (cd pydevd_attach_to_process && \ g++ %{optflags} -std=c++11 -shared -o attach_linux.so -fPIC -nostartfiles linux_and_mac/attach.cpp) %if 0%{?fedora} -PYTHONPATH=. %{__python2} build_tools/build.py --no-remove-binaries %if 0%{?fedora} < 32 -PYTHONPATH=. %{__python3} build_tools/build.py --no-remove-binaries +PYTHONPATH=. %{__python2} build_tools/build.py --no-remove-binaries %endif +PYTHONPATH=. %{__python3} build_tools/build.py --no-remove-binaries %endif popd &>/dev/null @@ -258,6 +263,9 @@ sed -i -e '/.*\.py$/s/0644/0755/' .mfiles* %license LICENSE.txt %changelog +* Sat Nov 23 2019 Mat Booth - 1:7.4.0-2 +- Don't build python 2 extensions for Fedora >= 32 + * Wed Nov 20 2019 Mat Booth - 1:7.4.0-1 - Update to latest upstream release