From a6991a431cefb44590ef7fa77fcd258e0154e555 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 23 May 2018 14:42:56 +0200 Subject: [PATCH] fix build failure caused by NotImplemented exceptions in winbuild.py --- 0001-python-pycurl-7.43-winbuild.patch | 44 ++++++++++++++++++++++++++ python-pycurl.spec | 8 ++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 0001-python-pycurl-7.43-winbuild.patch diff --git a/0001-python-pycurl-7.43-winbuild.patch b/0001-python-pycurl-7.43-winbuild.patch new file mode 100644 index 0000000..b7beca7 --- /dev/null +++ b/0001-python-pycurl-7.43-winbuild.patch @@ -0,0 +1,44 @@ +From 29deba7cdcbec627151de6482d6d78af55da4dfb Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Wed, 23 May 2018 14:34:08 +0200 +Subject: [PATCH] winbuild.py: use NotImplementedError instead of + NotImplemented + +--- + winbuild.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/winbuild.py b/winbuild.py +index 883255c..7e03290 100644 +--- a/winbuild.py ++++ b/winbuild.py +@@ -337,7 +337,7 @@ class OpensslBuilder(Builder): + + @property + def dll_paths(self): +- raise NotImplemented ++ raise NotImplementedError + + @property + def include_path(self): +@@ -371,7 +371,7 @@ class CaresBuilder(Builder): + + @property + def dll_paths(self): +- raise NotImplemented ++ raise NotImplementedError + + @property + def include_path(self): +@@ -431,7 +431,7 @@ BUILD_STATIC_LIB=1 + + @property + def dll_paths(self): +- raise NotImplemented ++ raise NotImplementedError + + @property + def include_path(self): +-- +2.14.3 + diff --git a/python-pycurl.spec b/python-pycurl.spec index f5fbe4b..716636c 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -2,13 +2,16 @@ Name: python-%{modname} Version: 7.43.0 -Release: 15%{?dist} +Release: 16%{?dist} Summary: A Python interface to libcurl License: LGPLv2+ or MIT URL: http://pycurl.sourceforge.net/ Source0: https://dl.bintray.com/pycurl/pycurl/pycurl-%{version}.tar.gz +# fix build failure caused by NotImplemented exceptions in winbuild.py +Patch1: 0001-python-pycurl-7.43-winbuild.patch + # drop link-time vs. run-time TLS backend check (#1446850) Patch2: 0002-python-pycurl-7.43.0-tls-backend.patch @@ -118,6 +121,9 @@ rm -fv tests/fake-curl/libcurl/*.so %{python3_sitearch}/%{modname}-%{version}-*.egg-info %changelog +* Wed May 23 2018 Kamil Dudka - 7.43.0-16 +- fix build failure caused by NotImplemented exceptions in winbuild.py + * Wed Mar 14 2018 Kamil Dudka - 7.43.0-15 - enable vsftpd-based tests - run the test-suite for Python 3 only