[arch-commits] Commit in sagemath-doc/repos (7 files)
Antonio Rojas
arojas at archlinux.org
Mon Apr 4 18:46:33 UTC 2016
Date: Monday, April 4, 2016 @ 20:46:32
Author: arojas
Revision: 169496
archrelease: copy trunk to community-testing-any
Added:
sagemath-doc/repos/community-testing-any/
sagemath-doc/repos/community-testing-any/PKGBUILD
(from rev 169495, sagemath-doc/trunk/PKGBUILD)
sagemath-doc/repos/community-testing-any/disable-fes.patch
(from rev 169495, sagemath-doc/trunk/disable-fes.patch)
sagemath-doc/repos/community-testing-any/docbuild_main.patch
(from rev 169495, sagemath-doc/trunk/docbuild_main.patch)
sagemath-doc/repos/community-testing-any/gap-4.8.patch
(from rev 169495, sagemath-doc/trunk/gap-4.8.patch)
sagemath-doc/repos/community-testing-any/package.patch
(from rev 169495, sagemath-doc/trunk/package.patch)
sagemath-doc/repos/community-testing-any/paths.patch
(from rev 169495, sagemath-doc/trunk/paths.patch)
---------------------+
PKGBUILD | 104 +++++++++++++
disable-fes.patch | 19 ++
docbuild_main.patch | 8 +
gap-4.8.patch | 378 ++++++++++++++++++++++++++++++++++++++++++++++++++
package.patch | 11 +
paths.patch | 39 +++++
6 files changed, 559 insertions(+)
Copied: sagemath-doc/repos/community-testing-any/PKGBUILD (from rev 169495, sagemath-doc/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,104 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=sagemath-doc
+pkgname=(sagemath-doc sagemath-src)
+pkgver=7.1
+pkgrel=1
+arch=(any)
+url="http://www.sagemath.org"
+license=(GPL)
+makedepends=(sagemath sage-notebook python2-pyzmq python2-pillow python2-docutils ipython2-notebook python2-pkgconfig cython2-devel)
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz"
+ "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-1.2.3.tar.gz"
+ package.patch paths.patch disable-fes.patch docbuild_main.patch gap-4.8.patch)
+md5sums=('c68e846444b9370fe79f43395cdc2725'
+ 'a98c93124035b4cd7183604aec656cb3'
+ '9ba81f717ffd4e20b8b2f2a318307488'
+ '1a60304525ac5a5f45114cc704807894'
+ '4eb23a3c7363258bc9ba764d6e5512ba'
+ 'f3bf3fa4e11e5af2bd0573cf2620e1f8'
+ '8f631f4132d3a97dade07e4c60044aed')
+
+prepare() {
+ cd sage-$pkgver
+
+# Arch-specific patches
+# assume all optional packages are installed
+ patch -p0 -i ../package.patch
+# fix paths in python imports
+ patch -p0 -i ../paths.patch
+# supress warning about GAP install dir
+ sed -e "s|gapdir = os.path.join(SAGE_LOCAL, 'gap', 'latest')|gapdir = '/usr/lib/gap'|" -i src/sage/libs/gap/util.pyx
+# fix Cremona database detection
+ sed -e "s|is_package_installed('database_cremona_ellcurve')|os.path.exists('/usr/share/sage/cremona/cremona.db')|" \
+ -i src/sage/databases/cremona.py
+# find bliss headers
+ sed -e 's|graph.hh|bliss/graph.hh|' -i src/sage/graphs/bliss.pyx
+
+# Upstream patches
+# fix build against libfes 0.2 http://trac.sagemath.org/ticket/15209
+# patch -p0 -i ../fes02.patch
+# disable fes module, fails to build
+ patch -p0 -i ../disable-fes.patch
+# port to GAP 4.8 http://trac.sagemath.org/ticket/19911
+ patch -p1 -i ../gap-4.8.patch
+
+# fix relative imports
+ patch -p0 -i ../docbuild_main.patch
+
+# use python2
+ sed -e 's|cython %s %s|cython2 %s %s|' -e 's|python setup.py|python2 setup.py|' -i src/sage/misc/cython.py
+
+ mkdir -p local-python
+ cp -r "$srcdir"/Sphinx-1.2.3/* local-python
+ cp -r src/sage_setup local-python
+}
+
+build() {
+ cd sage-$pkgver/src
+
+ export SAGE_LOCAL="/usr"
+ export SAGE_SRC="$PWD"
+ export SAGE_DOC_SRC="$SAGE_SRC"/doc
+ export SAGE_DOC="$SAGE_SRC"/doc
+ export SAGE_DOC_MATHJAX=yes
+ export PYTHONPATH="$srcdir/sage-$pkgver/local-python" # Sphinx 1.2 is needed
+ python2 sage_setup/docbuild --no-pdf-links -k all html
+}
+
+package_sagemath-doc() {
+ pkgdesc="HTML documentation and inline help for SageMath"
+ depends=(sage-notebook python2-sphinx)
+ conflicts=(sage-mathematics-doc)
+ replaces=(sage-mathematics-doc)
+
+ cd sage-$pkgver/src/doc
+
+ mkdir -p "$pkgdir"/usr/share/doc/sage/en
+ cp -r en/introspect "$pkgdir"/usr/share/doc/sage/en
+ cp -r common "$pkgdir"/usr/share/doc/sage
+ cp -r html "$pkgdir"/usr/share/doc/sage
+
+# Replace duplicated files by symlinks (Gentoo)
+ cd "$pkgdir"/usr/share/doc/sage
+ mv html/en/_static{,.tmp}
+ for _dir in `find -name _static` ; do
+ rm -r $_dir
+ ln -s /usr/share/doc/sage/html/en/_static $_dir
+ done
+ mv html/en/_static{.tmp,}
+}
+
+package_sagemath-src() {
+ pkgdesc="Source files for SageMath"
+ conflicts=(sage-mathematics-src)
+ replaces=(sage-mathematics-src)
+
+ mkdir -p "$pkgdir"/usr/share/sage/source
+ cp -r sage-$pkgver/src/sage "$pkgdir"/usr/share/sage/source
+ ln -s /usr/share/doc/sage "$pkgdir"/usr/share/sage/source/doc
+
+# remove developer interface
+ rm -r "$pkgdir"/usr/share/sage/source/sage/dev
+}
Copied: sagemath-doc/repos/community-testing-any/disable-fes.patch (from rev 169495, sagemath-doc/trunk/disable-fes.patch)
===================================================================
--- community-testing-any/disable-fes.patch (rev 0)
+++ community-testing-any/disable-fes.patch 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,19 @@
+--- src/module_list.py.orig 2015-06-07 11:29:30.710612146 +0200
++++ src/module_list.py 2015-06-07 11:30:21.877506106 +0200
+@@ -685,11 +685,11 @@
+ include_dirs = [SAGE_INC + '/ecl'],
+ depends = [SAGE_INC + '/ecl/ecl.h']),
+
+- OptionalExtension("sage.libs.fes",
+- ["sage/libs/fes.pyx"],
+- language = "c",
+- libraries = ['fes'],
+- package = 'fes'),
++# OptionalExtension("sage.libs.fes",
++# ["sage/libs/fes.pyx"],
++# language = "c",
++# libraries = ['fes'],
++# package = 'fes'),
+
+ Extension('sage.libs.flint.flint',
+ sources = ["sage/libs/flint/flint.pyx"],
Copied: sagemath-doc/repos/community-testing-any/docbuild_main.patch (from rev 169495, sagemath-doc/trunk/docbuild_main.patch)
===================================================================
--- community-testing-any/docbuild_main.patch (rev 0)
+++ community-testing-any/docbuild_main.patch 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,8 @@
+--- src/sage_setup/docbuild/__main__.py.orig
++++ src/sage_setup/docbuild/__main__.py
+@@ -1,3 +1,3 @@
+-from . import main
++from sage_setup.docbuild import main
+ main()
+
+ # Remove old documentation
Copied: sagemath-doc/repos/community-testing-any/gap-4.8.patch (from rev 169495, sagemath-doc/trunk/gap-4.8.patch)
===================================================================
--- community-testing-any/gap-4.8.patch (rev 0)
+++ community-testing-any/gap-4.8.patch 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,378 @@
+diff --git a/src/ext/gap/console.g b/src/ext/gap/console.g
+index 57043ff..db8b925 100644
+--- a/src/ext/gap/console.g
++++ b/src/ext/gap/console.g
+@@ -1,6 +1,6 @@
+-# If we are loaded with a workspace then $SAGE will be defined and in
++# If we are loaded with a workspace then \$SAGE will be defined and in
+ # that case we need to call StartInteract so that the pager will be
+ # set correctly. See trac #5043.
+-if IsBound($SAGE) then
+- $SAGE.StartInteract();
++if IsBound(\$SAGE) then
++ \$SAGE.StartInteract();
+ fi;
+diff --git a/src/ext/gap/sage.g b/src/ext/gap/sage.g
+index 8535b7d..2216fda 100644
+--- a/src/ext/gap/sage.g
++++ b/src/ext/gap/sage.g
+@@ -2,15 +2,15 @@
+ #
+ # SAGE support utilities to read into the GAP session.
+ #
+-$SAGE := rec();
++\$SAGE := rec();
+
+-$SAGE.OldPager := Pager;
++\$SAGE.OldPager := Pager;
+
+
+-$SAGE.NewPager :=
++\$SAGE.NewPager :=
+ function( data )
+ local str, lines, line, fn, start;
+- str := OutputTextFile($SAGE.tempfile,false);
++ str := OutputTextFile(\$SAGE.tempfile,false);
+ start := 1;
+ if IsRecord(data) then
+ lines := data.lines;
+@@ -30,38 +30,38 @@ $SAGE.NewPager :=
+ Print("Page from ",start,"\n");
+ end;
+
+-$SAGE.StartInteract := function()
++\$SAGE.StartInteract := function()
+ MakeReadWriteGlobal("Pager");
+- Pager := $SAGE.OldPager;
+- HELP_VIEWER_INFO.screen.show := $SAGE.OldPager;
++ Pager := \$SAGE.OldPager;
++ HELP_VIEWER_INFO.screen.show := \$SAGE.OldPager;
+ MakeReadOnlyGlobal("Pager");
+ end;
+
+
+-$SAGE.StopInteract := function()
++\$SAGE.StopInteract := function()
+ MakeReadWriteGlobal("Pager");
+- Pager := $SAGE.NewPager;
+- HELP_VIEWER_INFO.screen.show := $SAGE.NewPager;
++ Pager := \$SAGE.NewPager;
++ HELP_VIEWER_INFO.screen.show := \$SAGE.NewPager;
+ MakeReadOnlyGlobal("Pager");
+ end;
+
+
+-$SAGE.StopInteract();
++\$SAGE.StopInteract();
+
+-#$SAGE.ErrorHandler := function(m,a,m2,mode)
++#\$SAGE.ErrorHandler := function(m,a,m2,mode)
+ # PrintTo("*errout*", m);
+ # if a <> fail then
+ # PrintTo("*errout*",a);
+ # fi;
+-# SetErrorHandler($SAGE.ErrorHandler);
++# SetErrorHandler(\$SAGE.ErrorHandler);
+ # return true;
+ #end;
+
+-#SetErrorHandler($SAGE.ErrorHandler);
++#SetErrorHandler(\$SAGE.ErrorHandler);
+
+ SetAllInfoLevels(0);
+
+-$SAGE.OperationsAdmittingFirstArgument := function(obj)
++\$SAGE.OperationsAdmittingFirstArgument := function(obj)
+ local hits, myflags, i, flagss, flags;
+ hits := [];
+ myflags := FlagsType(TypeObj(obj));
+@@ -78,7 +78,7 @@ $SAGE.OperationsAdmittingFirstArgument := function(obj)
+ end;
+
+
+-$SAGE.CleanOperationName := function(name)
++\$SAGE.CleanOperationName := function(name)
+ local lt, ls;
+ lt := Length("Tester(");
+ if Length(name) > lt and name{[1..lt]} = "Tester(" then
+@@ -91,7 +91,7 @@ $SAGE.CleanOperationName := function(name)
+ return name;
+ end;
+
+-$SAGE.HasAtLeastOneMethodAsFirstArgument := function(op,obj)
++\$SAGE.HasAtLeastOneMethodAsFirstArgument := function(op,obj)
+ local t, f, n, meths, i;
+ t := TypeObj(obj);
+ f := FlagsType(t);
+@@ -107,11 +107,11 @@ $SAGE.HasAtLeastOneMethodAsFirstArgument := function(op,obj)
+ end;
+
+
+-$SAGE.PlausibleTabCompletionsForSage := function(o)
++\$SAGE.PlausibleTabCompletionsForSage := function(o)
+ local ops, opnames;
+- ops := Filtered($SAGE.OperationsAdmittingFirstArgument(o), op ->
+- $SAGE.HasAtLeastOneMethodAsFirstArgument(op,o));
+- opnames := List(ops, op -> $SAGE.CleanOperationName(NameFunction(op)));
++ ops := Filtered(\$SAGE.OperationsAdmittingFirstArgument(o), op ->
++ \$SAGE.HasAtLeastOneMethodAsFirstArgument(op,o));
++ opnames := List(ops, op -> \$SAGE.CleanOperationName(NameFunction(op)));
+ return Concatenation(opnames, GLOBAL_FUNCTION_NAMES);
+ end;
+
+diff --git a/src/sage/groups/finitely_presented.py b/src/sage/groups/finitely_presented.py
+index 92a4393..fd856ef 100644
+--- a/src/sage/groups/finitely_presented.py
++++ b/src/sage/groups/finitely_presented.py
+@@ -1168,9 +1168,7 @@ class FinitelyPresentedGroup(GroupMixinLibGAP, UniqueRepresentation,
+ You can attempt to reduce the presentation of the output group::
+
+ sage: D = C2.semidirect_product(C8, hom); D
+- Finitely presented group < a, b, c, d |
+- a^2, b^-1*a^-1*b*a*d^-1*c^-1, c^-1*a^-1*c*a*d^-1, d^-1*a^-1*d*a,
+- b^2*c^-1, c^-1*b^-1*c*b, d^-1*b^-1*d*b, c^2*d^-1, d^-1*c^-1*d*c, d^2 >
++ Finitely presented group < a, b | a^2, b^8, a^-1*b*a*b >
+ sage: D = C2.semidirect_product(C8, hom, reduced=True); D
+ Finitely presented group < a, b | a^2, (a*b)^2, b^8 >
+
+@@ -1178,10 +1176,9 @@ class FinitelyPresentedGroup(GroupMixinLibGAP, UniqueRepresentation,
+ sage: C4 = groups.presentation.Cyclic(4)
+ sage: hom = (C3.gens(), [(C4.gens(), C4.gens())])
+ sage: C3.semidirect_product(C4, hom)
+- Finitely presented group < a, b, c |
+- a^3, b^-1*a^-1*b*a, c^-1*a^-1*c*a, b^2*c^-1, c^-1*b^-1*c*b, c^2 >
++ Finitely presented group < a, b | a^3, b^4, a^-1*b*a*b^-1 >
+ sage: D = C3.semidirect_product(C4, hom, reduced=True); D
+- Finitely presented group < a, b | a^3, b^4, b^-1*a^-1*b*a >
++ Finitely presented group < a, b | a^3, b^4, a^-1*b*a*b^-1 >
+ sage: D.as_permutation_group().is_cyclic()
+ True
+
+@@ -1193,9 +1190,7 @@ class FinitelyPresentedGroup(GroupMixinLibGAP, UniqueRepresentation,
+ sage: C12 = groups.presentation.Cyclic(12)
+ sage: hom = (C5.gens(), [(C12.gens(), C12.gens())])
+ sage: sp = C5.semidirect_product(C12, hom, check=False); sp
+- Finitely presented group < a, b, c, d |
+- a^5, b^-1*a^-1*b*a, c^-1*a^-1*c*a, d^-1*a^-1*d*a, b^2*d^-1,
+- c^-1*b^-1*c*b, d^-1*b^-1*d*b, c^3, d^-1*c^-1*d*c, d^2 >
++ Finitely presented group < a, b | a^5, b^12, a^-1*b*a*b^-1 >
+ sage: sp.as_permutation_group().is_cyclic(), sp.order()
+ (True, 60)
+
+diff --git a/src/sage/groups/matrix_gps/matrix_group.py b/src/sage/groups/matrix_gps/matrix_group.py
+index 698a587..3e200e6 100644
+--- a/src/sage/groups/matrix_gps/matrix_group.py
++++ b/src/sage/groups/matrix_gps/matrix_group.py
+@@ -584,19 +584,19 @@ class MatrixGroup_gap(GroupMixinLibGAP, MatrixGroup_generic, ParentLibGAP):
+ sage: i = iter(GL(6,5))
+ sage: [ next(i) for j in range(8) ]
+ [
+- [1 0 0 0 0 0] [4 0 0 0 0 1] [0 4 0 0 0 0] [0 4 0 0 0 0]
+- [0 1 0 0 0 0] [4 0 0 0 0 0] [0 0 4 0 0 0] [0 0 4 0 0 0]
+- [0 0 1 0 0 0] [0 4 0 0 0 0] [0 0 0 4 0 0] [0 0 0 4 0 0]
+- [0 0 0 1 0 0] [0 0 4 0 0 0] [0 0 0 0 4 0] [0 0 0 0 4 0]
+- [0 0 0 0 1 0] [0 0 0 4 0 0] [0 0 0 0 0 4] [0 0 0 0 0 4]
+- [0 0 0 0 0 1], [0 0 0 0 4 0], [1 4 0 0 0 0], [2 4 0 0 0 0],
++ [1 0 0 0 0 0] [2 0 0 0 0 0] [3 0 0 0 0 0] [3 2 0 0 0 0]
++ [0 1 0 0 0 0] [0 1 0 0 0 0] [0 1 0 0 0 0] [0 1 0 0 0 0]
++ [0 0 1 0 0 0] [0 0 1 0 0 0] [0 0 1 0 0 0] [0 0 1 0 0 0]
++ [0 0 0 1 0 0] [0 0 0 1 0 0] [0 0 0 1 0 0] [0 0 0 1 0 0]
++ [0 0 0 0 1 0] [0 0 0 0 1 0] [0 0 0 0 1 0] [0 0 0 0 1 0]
++ [0 0 0 0 0 1], [0 0 0 0 0 1], [0 0 0 0 0 1], [0 0 0 0 0 1],
+ <BLANKLINE>
+- [3 0 0 0 0 1] [4 0 0 1 3 3] [0 0 0 2 0 0] [1 0 0 0 4 4]
+- [3 0 0 0 0 0] [4 0 0 0 3 3] [0 0 0 0 4 0] [1 0 0 0 0 4]
+- [0 4 0 0 0 0] [3 0 0 0 0 1] [2 2 0 0 0 2] [1 0 0 0 0 0]
+- [0 0 4 0 0 0] [3 0 0 0 0 0] [1 4 0 0 0 0] [0 1 0 0 0 0]
+- [0 0 0 4 0 0] [0 4 0 0 0 0] [0 2 4 0 0 0] [0 0 1 0 0 0]
+- [4 0 0 0 2 3], [2 0 3 4 4 4], [0 0 1 4 0 0], [0 0 0 1 0 0]
++ [2 1 0 0 0 0] [3 3 0 2 3 0] [2 4 0 1 4 0] [1 2 4 1 0 3]
++ [0 1 0 0 0 0] [0 1 0 0 0 0] [0 1 0 0 0 0] [0 1 0 0 0 0]
++ [0 0 1 0 0 0] [0 0 1 0 0 0] [0 0 1 0 0 0] [0 0 1 0 0 0]
++ [0 0 0 1 0 0] [0 0 0 1 0 0] [0 0 0 1 0 0] [0 0 0 1 0 0]
++ [0 0 0 0 1 0] [0 0 0 0 1 0] [0 0 0 0 1 0] [0 0 0 0 1 0]
++ [0 0 0 0 0 1], [0 0 0 0 0 1], [0 0 0 0 0 1], [0 0 0 0 0 1]
+ ]
+
+ This is the direct computation in GAP, which will just run
+diff --git a/src/sage/groups/perm_gps/permgroup.py b/src/sage/groups/perm_gps/permgroup.py
+index 2a426f1..5295949 100644
+--- a/src/sage/groups/perm_gps/permgroup.py
++++ b/src/sage/groups/perm_gps/permgroup.py
+@@ -1548,18 +1548,23 @@ class PermutationGroup_generic(group.FiniteGroup):
+
+ EXAMPLES::
+
+- sage: SymmetricGroup(10).stabilizer(4)._order()
++ sage: G = SymmetricGroup(10).subgroup([(i, 10) for i in range(1, 10) if i != 4])
++ sage: G._order()
+ 362880
+- sage: SymmetricGroup(10).stabilizer(4).stabilizer(5)._order()
+- 40320
+- sage: SymmetricGroup(200).stabilizer(100)._order() == factorial(199) # this should be very fast
+- True
+
+ TESTS::
+
+ sage: [SymmetricGroup(n).stabilizer(1)._gap_().Size() for n in [4..10]]
+ [6, 24, 120, 720, 5040, 40320, 362880]
+- sage: [SymmetricGroup(n).stabilizer(1)._order() for n in [4..10]]
++ sage: special_gens = [
++ ....: [(3,4), (2,4)],
++ ....: [(4,5), (3,5), (2,5)],
++ ....: [(5,6), (4,6), (3,6), (2,6)],
++ ....: [(6,7), (5,7), (4,7), (3,7), (2,7)],
++ ....: [(7,8), (6,8), (5,8), (4,8), (3,8), (2,8)],
++ ....: [(8,9), (7,9), (6,9), (5,9), (4,9), (3,9), (2,9)],
++ ....: [(9,10), (8,10), (7,10), (6,10), (5,10), (4,10), (3,10), (2,10)]]
++ sage: [SymmetricGroup(n).subgroup(gen)._order() for gen in special_gens]
+ [6, 24, 120, 720, 5040, 40320, 362880]
+ """
+ gens = self.gens()
+diff --git a/src/sage/interfaces/expect.py b/src/sage/interfaces/expect.py
+index 756f701..88dbf82 100644
+--- a/src/sage/interfaces/expect.py
++++ b/src/sage/interfaces/expect.py
+@@ -1423,13 +1423,13 @@ class StdOutContext:
+ return self.interface
+
+ def __exit__(self, typ, value, tb):
+- """
++ r"""
+ EXAMPLE::
+
+ sage: from sage.interfaces.expect import StdOutContext
+ sage: with StdOutContext(gap):
+ ....: gap('1+1')
+- $sage...
++ \$sage...
+ """
+ if self.silent:
+ return
+diff --git a/src/sage/interfaces/gap.py b/src/sage/interfaces/gap.py
+index 1f446aa..198fe84 100644
+--- a/src/sage/interfaces/gap.py
++++ b/src/sage/interfaces/gap.py
+@@ -716,7 +716,7 @@ class Gap_generic(ExtraTabCompletion, Expect):
+ sage: gap.eval('quit;')
+ ''
+ sage: a = gap(3)
+- ** Gap crashed or quit executing '$sage...:=3;;' **
++ ** Gap crashed or quit executing '\$sage...:=3;;' **
+ Restarting Gap and trying again
+ sage: a
+ 3
+@@ -858,7 +858,7 @@ class Gap_generic(ExtraTabCompletion, Expect):
+ EXAMPLES::
+
+ sage: print gap.version()
+- 4.7...
++ 4.8...
+ """
+ return self.eval('VERSION')[1:-1]
+
+@@ -1162,25 +1162,29 @@ class Gap(Gap_generic):
+ return reduce_load_GAP, tuple([])
+
+ def _next_var_name(self):
+- """
++ r"""
+ Returns the next unused variable name.
+
++ Note that names starting with dollar signs are valid GAP
++ identifiers, but need to be escaped with a backslash starting
++ with GAP-4.8.
++
+ EXAMPLES::
+
+ sage: g = Gap()
+ sage: g._next_var_name()
+- '$sage1'
++ '\\$sage1'
+ sage: g(2)^2
+ 4
+ sage: g._next_var_name()
+- '$sage...'
++ '\\$sage...'
+ """
+ if len(self._available_vars) != 0:
+ v = self._available_vars[0]
+ del self._available_vars[0]
+ return v
+ self.__seq += 1
+- return '$sage%s'%self.__seq
++ return r'\$sage%s'%self.__seq
+
+ def _start(self):
+ """
+@@ -1324,7 +1328,7 @@ class Gap(Gap_generic):
+ else:
+ tmp_to_use = self._local_tmpfile()
+ self.eval('SetGAPDocTextTheme("none")')
+- self.eval('$SAGE.tempfile := "%s";'%tmp_to_use)
++ self.eval(r'\$SAGE.tempfile := "%s";'%tmp_to_use)
+ line = Expect.eval(self, "? %s"%s)
+ Expect.eval(self, "? 1")
+ match = re.search("Page from (\d+)", line)
+@@ -1384,7 +1388,7 @@ class Gap(Gap_generic):
+ sage: gap._pre_interact()
+ sage: gap._post_interact()
+ """
+- self._eval_line("$SAGE.StartInteract();")
++ self._eval_line(r'\$SAGE.StartInteract();')
+
+ def _post_interact(self):
+ """
+@@ -1393,7 +1397,7 @@ class Gap(Gap_generic):
+ sage: gap._pre_interact()
+ sage: gap._post_interact()
+ """
+- self._eval_line("$SAGE.StopInteract();")
++ self._eval_line(r'\$SAGE.StopInteract();')
+
+ def _eval_line_using_file(self, line):
+ i = line.find(':=')
+@@ -1641,7 +1645,7 @@ class GapElement(GapElement_generic):
+ """
+ from sage.misc.misc import uniq
+ P = self.parent()
+- v = P.eval('$SAGE.OperationsAdmittingFirstArgument(%s)'%self.name())
++ v = P.eval(r'\$SAGE.OperationsAdmittingFirstArgument(%s)'%self.name())
+ v = v.replace('Tester(','').replace('Setter(','').replace(')','').replace('\n', '')
+ v = v.split(',')
+ v = [ oper.split('"')[1] for oper in v ]
+diff --git a/src/sage/libs/gap/gap_includes.pxd b/src/sage/libs/gap/gap_includes.pxd
+index bd945c7..fa23ba5 100644
+--- a/src/sage/libs/gap/gap_includes.pxd
++++ b/src/sage/libs/gap/gap_includes.pxd
+@@ -131,7 +131,7 @@ cdef extern from "gap/objects.h":
+ cdef int libGAP_LAST_TESTING_TNUM
+
+ cdef extern from "gap/read.h":
+- void* libGAP_ReadEvalCommand(libGAP_Obj context)
++ void* libGAP_ReadEvalCommand(libGAP_Obj context, libGAP_UInt *dualSemicolon)
+ void* libGAP_ReadEvalFile()
+ void* libGAP_ReadEvalResult
+ bint libGAP_READ_ERROR()
+diff --git a/src/sage/libs/gap/util.pyx b/src/sage/libs/gap/util.pyx
+index 52a75be..d62b8e9 100644
+--- a/src/sage/libs/gap/util.pyx
++++ b/src/sage/libs/gap/util.pyx
+@@ -280,7 +280,7 @@ cdef libGAP_Obj gap_eval(str gap_string) except? NULL:
+ libgap_start_interaction(cmd)
+ try:
+ sig_on()
+- status = libGAP_ReadEvalCommand(libGAP_BottomLVars)
++ status = libGAP_ReadEvalCommand(libGAP_BottomLVars, NULL)
+ if status != libGAP_STATUS_END:
+ libgap_call_error_handler()
+ sig_off()
+@@ -464,7 +464,7 @@ def command(command_string):
+ libgap_start_interaction(cmd)
+ try:
+ sig_on()
+- status = libGAP_ReadEvalCommand(libGAP_BottomLVars)
++ status = libGAP_ReadEvalCommand(libGAP_BottomLVars, NULL)
+ if status != libGAP_STATUS_END:
+ libgap_call_error_handler()
+ sig_off()
Copied: sagemath-doc/repos/community-testing-any/package.patch (from rev 169495, sagemath-doc/trunk/package.patch)
===================================================================
--- community-testing-any/package.patch (rev 0)
+++ community-testing-any/package.patch 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,11 @@
+--- src/sage/misc/package.py.orig 2014-11-23 15:58:13.000000000 +0100
++++ src/sage/misc/package.py 2015-01-22 20:32:25.651383902 +0100
+@@ -204,7 +204,7 @@
+ Otherwise, installing "pillow" will cause this function to think
+ that "pil" is installed, for example.
+ """
+- return any(p.split('-')[0] == package for p in installed_packages())
++ return True
+
+ def package_versions(package_type, local=False):
+ r"""
Copied: sagemath-doc/repos/community-testing-any/paths.patch (from rev 169495, sagemath-doc/trunk/paths.patch)
===================================================================
--- community-testing-any/paths.patch (rev 0)
+++ community-testing-any/paths.patch 2016-04-04 18:46:32 UTC (rev 169496)
@@ -0,0 +1,39 @@
+--- src/sage/env.py.orig 2014-06-25 10:47:25.827203554 +1200
++++ src/sage/env.py 2014-06-25 10:49:07.667402821 +1200
+@@ -87,25 +87,22 @@
+ _add_variable_or_fallback('LOCAL_IDENTIFIER','$HOSTNAME.%s'%os.getpid())
+
+ # bunch of sage directories and files
+-_add_variable_or_fallback('SAGE_ROOT', None)
+-_add_variable_or_fallback('SAGE_LOCAL', opj('$SAGE_ROOT', 'local'))
+-_add_variable_or_fallback('SAGE_ETC', opj('$SAGE_LOCAL', 'etc'))
+-_add_variable_or_fallback('SAGE_INC', opj('$SAGE_LOCAL', 'include'))
+-_add_variable_or_fallback('SAGE_SHARE', opj('$SAGE_LOCAL', 'share'))
++_add_variable_or_fallback('SAGE_ROOT', '/usr')
++_add_variable_or_fallback('SAGE_LOCAL', '/usr')
++_add_variable_or_fallback('SAGE_ETC', '/etc/sage')
++_add_variable_or_fallback('SAGE_INC', opj('$SAGE_LOCAL', 'include', 'sage'))
++_add_variable_or_fallback('SAGE_SHARE', opj('$SAGE_LOCAL', 'share', 'sage'))
+
+ _add_variable_or_fallback('SAGE_SRC', opj('$SAGE_ROOT', 'src'))
+-_add_variable_or_fallback('SITE_PACKAGES', site.getsitepackages())
++_add_variable_or_fallback('SITE_PACKAGES', site.getsitepackages()+['/usr/lib/sage/site-packages'])
+ _add_variable_or_fallback('SAGE_LIB', SITE_PACKAGES[0])
+
+ _add_variable_or_fallback('SAGE_CYTHONIZED', opj('$SAGE_SRC', 'build', 'cythonized'))
+
+-_add_variable_or_fallback('SAGE_EXTCODE', opj('$SAGE_SHARE', 'sage', 'ext'))
+-_add_variable_or_fallback('SAGE_LOGS', opj('$SAGE_ROOT', 'logs', 'pkgs'))
+-_add_variable_or_fallback('SAGE_SPKG_INST', opj('$SAGE_LOCAL', 'var', 'lib', 'sage', 'installed'))
+-_add_variable_or_fallback('SAGE_DOC_SRC', opj('$SAGE_SRC', 'doc'))
+-_add_variable_or_fallback('SAGE_DOC', opj('$SAGE_SHARE', 'doc', 'sage'))
+-_add_variable_or_fallback('DOT_SAGE', opj(os.environ.get('HOME','$SAGE_ROOT'), '.sage'))
+-_add_variable_or_fallback('SAGE_DOT_GIT', opj('$SAGE_ROOT', '.git'))
++_add_variable_or_fallback('SAGE_EXTCODE', opj('$SAGE_SHARE', 'ext'))
++_add_variable_or_fallback('SAGE_DOC_SRC', opj('$SAGE_SRC', 'doc'))
++_add_variable_or_fallback('SAGE_DOC', opj('$SAGE_SHARE', 'doc', 'sage'))
++_add_variable_or_fallback('DOT_SAGE', opj(os.environ.get('HOME'), '.sage'))
+ _add_variable_or_fallback('SAGE_DISTFILES', opj('$SAGE_ROOT', 'upstream'))
+
+ # misc
+
More information about the arch-commits
mailing list