[arch-commits] Commit in sagemath/trunk (PKGBUILD sagemath-cython0.25.patch)

Antonio Rojas arojas at archlinux.org
Tue Nov 22 22:36:41 UTC 2016


    Date: Tuesday, November 22, 2016 @ 22:36:41
  Author: arojas
Revision: 196568

Update cython 0.25 patch to fix variable definition

Modified:
  sagemath/trunk/PKGBUILD
  sagemath/trunk/sagemath-cython0.25.patch

---------------------------+
 PKGBUILD                  |    4 -
 sagemath-cython0.25.patch |  114 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-22 21:10:12 UTC (rev 196567)
+++ PKGBUILD	2016-11-22 22:36:41 UTC (rev 196568)
@@ -10,7 +10,7 @@
 pkgbase=sagemath
 pkgname=(sagemath sagemath-jupyter)
 pkgver=7.4
-pkgrel=8
+pkgrel=9
 pkgdesc="Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab"
 arch=(i686 x86_64)
 url="http://www.sagemath.org"
@@ -47,7 +47,7 @@
          '0c9a57d35de80c2cd418ebec912efbbb'
          '39d3fded716d2a7ae0ab03e0896b7497'
          '4bd7305e8b69add8356f9751470cf587'
-         '0ba2b4266f14b19319ece3996be70511')
+         'e76faa070a490de97818762ba340d9dc')
 
 prepare(){
   cd sage-$pkgver

Modified: sagemath-cython0.25.patch
===================================================================
--- sagemath-cython0.25.patch	2016-11-22 21:10:12 UTC (rev 196567)
+++ sagemath-cython0.25.patch	2016-11-22 22:36:41 UTC (rev 196568)
@@ -1,3 +1,117 @@
+From 77eb8e2a40d97d49df24793736a8d9feef485322 Mon Sep 17 00:00:00 2001
+From: Jeroen Demeyer <jdemeyer at cage.ugent.be>
+Date: Tue, 13 Sep 2016 14:47:46 +0200
+Subject: [PATCH 1/2] Move old_style_globals to individual modules
+
+---
+ src/sage/calculus/var.pyx                   | 2 ++
+ src/sage/ext/interactive_constructors_c.pyx | 1 +
+ src/sage/misc/citation.pyx                  | 5 ++++-
+ src/sage/misc/fpickle.pyx                   | 1 +
+ src/sage/misc/reset.pyx                     | 5 ++++-
+ src/sage/misc/sage_timeit_class.pyx         | 4 ++--
+ src/sage/structure/category_object.pyx      | 1 +
+ src/sage/structure/sage_object.pyx          | 1 +
+ src/setup.py                                | 4 ----
+ 9 files changed, 16 insertions(+), 8 deletions(-)
+
+diff --git a/src/sage/calculus/var.pyx b/src/sage/calculus/var.pyx
+index b11b111..0a18f68 100644
+--- a/src/sage/calculus/var.pyx
++++ b/src/sage/calculus/var.pyx
+@@ -1,6 +1,8 @@
++# cython: old_style_globals=True
+ """
+ Symbolic variables
+ """
++
+ from sage.symbolic.function_factory import function as new_function
+ from sage.symbolic.ring import SR
+ 
+diff --git a/src/sage/ext/interactive_constructors_c.pyx b/src/sage/ext/interactive_constructors_c.pyx
+index 321e368..a9b9bea 100644
+--- a/src/sage/ext/interactive_constructors_c.pyx
++++ b/src/sage/ext/interactive_constructors_c.pyx
+@@ -1,3 +1,4 @@
++# cython: old_style_globals=True
+ r"""
+ Constructors that automatically inject variables into the global module scope
+ """
+diff --git a/src/sage/misc/citation.pyx b/src/sage/misc/citation.pyx
+index 77454aa..2053074 100644
+--- a/src/sage/misc/citation.pyx
++++ b/src/sage/misc/citation.pyx
+@@ -1,4 +1,7 @@
+-"Dependency usage tracking for citations"
++# cython: old_style_globals=True
++"""
++Dependency usage tracking for citations
++"""
+ 
+ from sage.misc.all import tmp_filename
+ from sage.env import SAGE_ROOT
+diff --git a/src/sage/misc/fpickle.pyx b/src/sage/misc/fpickle.pyx
+index 79520b1..c6d0d74 100644
+--- a/src/sage/misc/fpickle.pyx
++++ b/src/sage/misc/fpickle.pyx
+@@ -1,3 +1,4 @@
++# cython: old_style_globals=True
+ """
+ Function pickling
+ 
+diff --git a/src/sage/misc/reset.pyx b/src/sage/misc/reset.pyx
+index bd6bc78..bd7c94b 100644
+--- a/src/sage/misc/reset.pyx
++++ b/src/sage/misc/reset.pyx
+@@ -1,4 +1,7 @@
+-"Interpreter reset"
++# cython: old_style_globals=True
++"""
++Interpreter reset
++"""
+ 
+ import sys
+ 
+diff --git a/src/sage/misc/sage_timeit_class.pyx b/src/sage/misc/sage_timeit_class.pyx
+index 4c369f8..82f421f 100644
+--- a/src/sage/misc/sage_timeit_class.pyx
++++ b/src/sage/misc/sage_timeit_class.pyx
+@@ -1,3 +1,5 @@
++# This is here in Cython so we can access the interpreter globals
++# cython: old_style_globals=True
+ """
+ The ``timeit`` command
+ 
+@@ -5,8 +7,6 @@ This uses the function :func:`~sage.misc.sage_timeit.sage_timeit`.
+ """
+ from __future__ import absolute_import
+ 
+-# This is here in Cython so we can get the interpreter globals
+-
+ from . import sage_timeit
+ 
+ 
+diff --git a/src/sage/structure/category_object.pyx b/src/sage/structure/category_object.pyx
+index d9ef9c5..97930d3 100644
+--- a/src/sage/structure/category_object.pyx
++++ b/src/sage/structure/category_object.pyx
+@@ -1,3 +1,4 @@
++# cython: old_style_globals=True
+ r"""
+ Base class for objects of a category
+ 
+diff --git a/src/sage/structure/sage_object.pyx b/src/sage/structure/sage_object.pyx
+index c931a64..4caf4ae 100644
+--- a/src/sage/structure/sage_object.pyx
++++ b/src/sage/structure/sage_object.pyx
+@@ -1,4 +1,5 @@
+ # -*- encoding: utf-8 -*-
++# cython: old_style_globals=True
+ r"""
+ Abstract base class for Sage objects
+ """
+diff --git a/src/setup.py b/src/setup.py
+index c26639d..f094700 100755
 --- a/src/setup.py	2016-11-05 19:34:44.701025334 +0000
 +++ b/src/setup.py	2016-11-05 19:46:00.706210289 +0000
 @@ -562,16 +562,6 @@



More information about the arch-commits mailing list