Update to 0.27.1
* provide old name with %_isa * add missing BuildRequires: python3-setuptools * python-jedi -> python2-jedi Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
39f8441548
commit
14b67b84c1
|
@ -22,3 +22,4 @@ Cython-0.12.1.tar.gz
|
|||
/Cython-0.23.4.tar.gz
|
||||
/Cython-0.24.1.tar.gz
|
||||
/Cython-0.25.2.tar.gz
|
||||
/Cython-0.27.1.tar.gz
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
From 97de55acf4efe3c3ae2b5a955578cae71958dfe7 Mon Sep 17 00:00:00 2001
|
||||
From: Jeroen Demeyer <jdemeyer@cage.ugent.be>
|
||||
Date: Sun, 7 Feb 2016 17:07:54 +0100
|
||||
Subject: [PATCH] Check sys.path for .pxi files too
|
||||
|
||||
---
|
||||
Cython/Compiler/Main.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py
|
||||
index 65b3cd309..d4d0f788b 100644
|
||||
--- a/Cython/Compiler/Main.py
|
||||
+++ b/Cython/Compiler/Main.py
|
||||
@@ -269,7 +269,7 @@ class Context(object):
|
||||
# Search list of include directories for filename.
|
||||
# Reports an error and returns None if not found.
|
||||
path = self.search_include_directories(filename, "", pos,
|
||||
- include=True)
|
||||
+ include=True, sys_path=True)
|
||||
if not path:
|
||||
error(pos, "'%s' not found" % filename)
|
||||
return path
|
||||
--
|
||||
2.11.0
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
From 3526e08741c05dd122ffe827d9d8b5864a3436f5 Mon Sep 17 00:00:00 2001
|
||||
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||
Date: Wed, 21 Dec 2016 14:31:08 +0100
|
||||
Subject: [PATCH] fix typo in Compiler/Options.py
|
||||
|
||||
Reported-by: Paulo Andrade <paulo.cesar.pereira.de.andrade@gmail.com>
|
||||
References: https://bugzilla.redhat.com/show_bug.cgi?id=1406533
|
||||
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||
---
|
||||
Cython/Compiler/Options.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Cython/Compiler/Options.py b/Cython/Compiler/Options.py
|
||||
index ddafa202a..893dab23f 100644
|
||||
--- a/Cython/Compiler/Options.py
|
||||
+++ b/Cython/Compiler/Options.py
|
||||
@@ -8,10 +8,10 @@ class ShouldBeFromDirective(object):
|
||||
|
||||
known_directives = []
|
||||
|
||||
- def __init__(self, options_name, directive_name=None, dissallow=False):
|
||||
+ def __init__(self, options_name, directive_name=None, disallow=False):
|
||||
self.options_name = options_name
|
||||
self.directive_name = directive_name or options_name
|
||||
- self.dissallow = dissallow
|
||||
+ self.disallow = disallow
|
||||
self.known_directives.append(self)
|
||||
|
||||
def __nonzero__(self):
|
||||
--
|
||||
2.11.0
|
||||
|
18
Cython.spec
18
Cython.spec
|
@ -5,21 +5,14 @@
|
|||
%bcond_with tests
|
||||
|
||||
Name: Cython
|
||||
Version: 0.25.2
|
||||
Release: 7%{?dist}
|
||||
Version: 0.27.1
|
||||
Release: 1%{?dist}
|
||||
Summary: A language for writing Python extension modules
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://www.cython.org
|
||||
Source: https://github.com/cython/cython/archive/%{version}/%{srcname}-%{version}.tar.gz
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1406533
|
||||
# https://github.com/cython/cython/pull/1560
|
||||
Patch0001: 0001-fix-typo-in-Compiler-Options.py.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1406905
|
||||
# https://github.com/cython/cython/pull/483
|
||||
Patch0002: 0001-Check-sys.path-for-.pxi-files-too.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
%if %{with tests}
|
||||
BuildRequires: gcc-c++
|
||||
|
@ -35,13 +28,14 @@ for writing Python extension modules.
|
|||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{srcname}}
|
||||
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Obsoletes: Cython < %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if %{with tests}
|
||||
BuildRequires: python2-coverage
|
||||
BuildRequires: python2-numpy
|
||||
BuildRequires: python-jedi
|
||||
BuildRequires: python2-jedi
|
||||
%endif
|
||||
|
||||
%description -n python2-%{srcname} %{_description}
|
||||
|
@ -52,6 +46,7 @@ Python 2 version.
|
|||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-coverage
|
||||
BuildRequires: python3-numpy
|
||||
|
@ -112,6 +107,9 @@ rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
|
|||
%{python3_sitearch}/__pycache__/%{upname}.*
|
||||
|
||||
%changelog
|
||||
* Mon Oct 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.1-1
|
||||
- Update to 0.27.1
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (Cython-0.25.2.tar.gz) = 65c15dd5f8af1ecc5943f557d38a122b69a4d02b41f63dfa68d7201f97eb2b4ff9684eb6cc0dd629fe8e3c9acdbeac1be9835e92fab0ba9e54768731a794d866
|
||||
SHA512 (Cython-0.27.1.tar.gz) = d414a4e9aed0450ebd1c8abde7e0965e53e30eb7c33e99078ea195d1e0fb2d465b3e79823cbc995689808ea58d89fa8e682a1898039328591ca1aa1bdb04c571
|
||||
|
|
Loading…
Reference in New Issue