Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 7fa76ab

Browse files
committed
Update to latest beta.
2 parents cda5303 + d091c43 commit 7fa76ab

File tree

143 files changed

+3321
-781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+3321
-781
lines changed

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 7.3.beta5, Release Date: 2016-06-24
1+
SageMath version 7.3.beta6, Release Date: 2016-06-30

build/pkgs/cddlib/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
094g.p0
1+
094g.p1

build/pkgs/cddlib/patches/lib-src-gmp_Makefile.am.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src-gmp/Makefile.am b/src/lib-src-gmp/Makefile.am
1+
diff --git a/lib-src-gmp/Makefile.am b/lib-src-gmp/Makefile.am
22
index b3ab11a..a9673b8 100644
3-
--- a/src.bak/lib-src-gmp/Makefile.am
4-
+++ b/src/lib-src-gmp/Makefile.am
3+
--- a/lib-src-gmp/Makefile.am
4+
+++ b/lib-src-gmp/Makefile.am
55
@@ -13,7 +13,8 @@ cddmp_f.c \
66
cddio_f.c \
77
cddlib_f.c \

build/pkgs/cddlib/patches/lib-src-gmp_Makefile.in.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src-gmp/Makefile.in b/src/lib-src-gmp/Makefile.in
1+
diff --git a/lib-src-gmp/Makefile.in b/lib-src-gmp/Makefile.in
22
index 4ab9342..93ff335 100644
3-
--- a/src.bak/lib-src-gmp/Makefile.in
4-
+++ b/src/lib-src-gmp/Makefile.in
3+
--- a/lib-src-gmp/Makefile.in
4+
+++ b/lib-src-gmp/Makefile.in
55
@@ -54,7 +54,7 @@
66
libcddgmp_la_LIBADD =
77
am_libcddgmp_la_OBJECTS = cddcore.lo cddlp.lo cddmp.lo cddio.lo \

build/pkgs/cddlib/patches/lib-src_Makefile.am.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src/Makefile.am b/src/lib-src/Makefile.am
1+
diff --git a/lib-src/Makefile.am b/lib-src/Makefile.am
22
index fe08dc3..5b964c6 100644
3-
--- a/src.bak/lib-src/Makefile.am
4-
+++ b/src/lib-src/Makefile.am
3+
--- a/lib-src/Makefile.am
4+
+++ b/lib-src/Makefile.am
55
@@ -7,7 +7,8 @@ cddmp.c \
66
cddio.c \
77
cddlib.c \

build/pkgs/cddlib/patches/lib-src_Makefile.in.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src/Makefile.in b/src/lib-src/Makefile.in
1+
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
22
index bd3c2b5..ccf4a6c 100644
3-
--- a/src.bak/lib-src/Makefile.in
4-
+++ b/src/lib-src/Makefile.in
3+
--- a/lib-src/Makefile.in
4+
+++ b/lib-src/Makefile.in
55
@@ -53,7 +53,7 @@ libLTLIBRARIES_INSTALL = $(INSTALL)
66
LTLIBRARIES = $(lib_LTLIBRARIES)
77
libcdd_la_LIBADD =

build/pkgs/cddlib/patches/lib-src_cddcore.c.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src/cddcore.c b/src/lib-src/cddcore.c
1+
diff --git a/lib-src/cddcore.c b/lib-src/cddcore.c
22
index 9644788..a029bc3 100644
3-
--- a/src.bak/lib-src/cddcore.c
4-
+++ b/src/lib-src/cddcore.c
3+
--- a/lib-src/cddcore.c
4+
+++ b/lib-src/cddcore.c
55
@@ -17,6 +17,7 @@
66
#include <time.h>
77
#include <math.h>

build/pkgs/cddlib/patches/lib-src_cddlp.c.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/lib-src/cddlp.c b/src/lib-src/cddlp.c
1+
diff --git a/lib-src/cddlp.c b/lib-src/cddlp.c
22
index 855b197..dd1268b 100644
3-
--- a/src.bak/lib-src/cddlp.c
4-
+++ b/src/lib-src/cddlp.c
3+
--- a/lib-src/cddlp.c
4+
+++ b/lib-src/cddlp.c
55
@@ -13,6 +13,7 @@
66

77
#include "setoper.h" /* set operation library header (Ver. May 18, 2000 or later) */

build/pkgs/cddlib/patches/src-gmp_Makefile.am.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/src-gmp/Makefile.am b/src/src-gmp/Makefile.am
1+
diff --git a/src-gmp/Makefile.am b/src-gmp/Makefile.am
22
index e4dbb86..e579d71 100644
3-
--- a/src.bak/src-gmp/Makefile.am
4-
+++ b/src/src-gmp/Makefile.am
3+
--- a/src-gmp/Makefile.am
4+
+++ b/src-gmp/Makefile.am
55
@@ -11,7 +11,8 @@
66
testcdd2_gmp \
77
testlp1_gmp \

build/pkgs/cddlib/patches/src-gmp_Makefile.in.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/src-gmp/Makefile.in b/src/src-gmp/Makefile.in
1+
diff --git a/src-gmp/Makefile.in b/src-gmp/Makefile.in
22
index f88c83f..3470dc9 100644
3-
--- a/src.bak/src-gmp/Makefile.in
4-
+++ b/src/src-gmp/Makefile.in
3+
--- a/src-gmp/Makefile.in
4+
+++ b/src-gmp/Makefile.in
55
@@ -37,7 +37,8 @@
66
projection_gmp$(EXEEXT) adjacency_gmp$(EXEEXT) \
77
allfaces_gmp$(EXEEXT) testshoot_gmp$(EXEEXT) \

build/pkgs/cddlib/patches/src_Makefile.am.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/src/Makefile.am b/src/src/Makefile.am
1+
diff --git a/src/Makefile.am b/src/Makefile.am
22
index 17f8625..ad50af2 100644
3-
--- a/src.bak/src/Makefile.am
4-
+++ b/src/src/Makefile.am
3+
--- a/src/Makefile.am
4+
+++ b/src/Makefile.am
55
@@ -11,7 +11,8 @@ testshoot \
66
testcdd2 \
77
testlp1 \

build/pkgs/cddlib/patches/src_Makefile.in.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/src.bak/src/Makefile.in b/src/src/Makefile.in
1+
diff --git a/src/Makefile.in b/src/Makefile.in
22
index 8385e4d..b9f6a26 100644
3-
--- a/src.bak/src/Makefile.in
4-
+++ b/src/src/Makefile.in
3+
--- a/src/Makefile.in
4+
+++ b/src/Makefile.in
55
@@ -36,7 +36,7 @@ bin_PROGRAMS = scdd$(EXEEXT) lcdd$(EXEEXT) redcheck$(EXEEXT) \
66
fourier$(EXEEXT) projection$(EXEEXT) adjacency$(EXEEXT) \
77
allfaces$(EXEEXT) testcdd1$(EXEEXT) testshoot$(EXEEXT) \

build/pkgs/cddlib/spkg-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for patch in ../patches/*.patch; do
3838
if echo "$patch" | grep 'Makefile.am.patch$' > /dev/null; then
3939
continue
4040
fi
41-
patch -p2 < "$patch" ||
41+
patch -p1 < "$patch" ||
4242
die "Error patching cddlib"
4343
done
4444

build/pkgs/configure/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=387750b93152bd04031fc79fefbedf67a81d2570
3-
md5=168ddf3b69c6a1d16126b247dbb266a4
4-
cksum=1400068458
2+
sha1=7ff2fae8aa57607ba55ede02162d35c6a65dc0ce
3+
md5=406cc1b178d03e1045bd0a9678a88b77
4+
cksum=2873788725
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
170
1+
171

build/pkgs/ecl/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.1.2.p0
1+
16.1.2.p1
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Backport of fix in master ecl repo. See trac 20845.
2+
diff --git a/src/c/unixfsys.d b/src/c/unixfsys.d
3+
index d3dd4d1..287eded 100644
4+
--- a/src/c/unixfsys.d
5+
+++ b/src/c/unixfsys.d
6+
@@ -158,7 +158,7 @@ current_dir(void) {
7+
output = ecl_alloc_adjustable_base_string(size);
8+
ecl_disable_interrupts();
9+
ok = getcwd((char*)output->base_string.self, size);
10+
- if (ok == NULL && errno != ENAMETOOLONG) {
11+
+ if (ok == NULL && errno != ERANGE) {
12+
perror("ext::getcwd error");
13+
ecl_internal_error("Can't work without CWD");
14+
}

build/pkgs/gfan/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.p0
1+
0.5.p1

build/pkgs/gfan/patches/Makefile.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- Makefile.orig 2012-07-11 11:50:44.733022911 +1200
2-
+++ Makefile 2012-07-11 12:20:02.644997882 +1200
1+
--- a/Makefile.orig 2012-07-11 11:50:44.733022911 +1200
2+
+++ b/Makefile 2012-07-11 12:20:02.644997882 +1200
33
@@ -75,18 +75,10 @@
44
MKDIR=mkdir -p
55

build/pkgs/gfan/patches/app_minkowski.cpp.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- app_minkowski.cpp.orig 2011-01-24 06:21:47.000000000 +1300
2-
+++ app_minkowski.cpp 2012-07-23 11:43:29.172776129 +1200
1+
--- a/app_minkowski.cpp.orig 2011-01-24 06:21:47.000000000 +1300
2+
+++ b/app_minkowski.cpp 2012-07-23 11:43:29.172776129 +1200
33
@@ -64,9 +64,9 @@
44
registerOptions();
55
optionPartOne.hide();

build/pkgs/gfan/spkg-install

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ cd src
3333

3434
# Patch the Makefile so it can build in Sage:
3535
echo "Copying a revised Makefile, to improve portability..."
36-
patch -p0 <../patches/Makefile.patch
36+
patch -p1 <../patches/Makefile.patch
3737
if [[ $? -ne 0 ]]; then
3838
echo >&2 "Error: Patch to improve portability did not copy correctly."
3939
exit 1
4040
fi
4141

4242
echo "Copying patched file to fix an issue with GCC 4.7.0..."
43-
patch -p0 <../patches/app_minkowski.cpp.patch
43+
patch -p1 <../patches/app_minkowski.cpp.patch
4444
if [[ $? -ne 0 ]]; then
4545
echo >&2 "Error: Patch to fix GCC 4.7.0 issue did not copy correctly."
4646
exit 1

build/pkgs/git_trac/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=git_trac-VERSION.tar.bz2
2-
sha1=90c1e2c279fcac22b050c62253cfb53c8fe9c9c1
3-
md5=1f6e913132aa16b19cb5c99ee921f3f5
4-
cksum=774035580
2+
sha1=137c70eb041c62de31e543e5b76fb6d30d044a58
3+
md5=7783a2da02dbb9156ccb0ff5b7cff9bc
4+
cksum=2994355167
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20150522
1+
20160625
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.3
1+
2.1.3.p0

build/pkgs/pygments/spkg-install

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ fi
99
#Remove old version
1010
rm -rf "$SAGE_LOCAL"/lib/python/site-packages/Pygments-*
1111

12+
#Install new version
13+
cd src
14+
1215
# Apply patches
1316
echo "Patching Pygments..."
14-
for p in patches/*.patch; do
15-
patch -p0 <$p
17+
for p in ../patches/*.patch; do
18+
patch -p1 <$p
1619
if [ $? -ne 0 ]; then
1720
echo "Error applying patch $p"
1821
exit 1
1922
fi
2023
done
2124

22-
#Install new version
23-
cd src
24-
2525
python setup.py install
2626
if [ $? -ne 0 ]; then
2727
echo "Error installing Pygments."

src/bin/sage-banner

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
┌────────────────────────────────────────────────────────────────────┐
2-
│ SageMath version 7.3.beta5, Release Date: 2016-06-24
2+
│ SageMath version 7.3.beta6, Release Date: 2016-06-30
33
│ Type "notebook()" for the browser-based notebook interface. │
44
│ Type "help()" for help. │
55
└────────────────────────────────────────────────────────────────────┘

src/bin/sage-version.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sage version information for shell scripts
22
# This file is auto-generated by the sage-update-version script, do not edit!
3-
SAGE_VERSION='7.3.beta5'
4-
SAGE_RELEASE_DATE='2016-06-24'
3+
SAGE_VERSION='7.3.beta6'
4+
SAGE_RELEASE_DATE='2016-06-30'

src/doc/de/tutorial/afterword.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ sein, also verhält sich Sage an manchen Stellen anders als Python.
101101
'3^2'
102102

103103
- **Integerdivision:** Der Pythonaudruck ``2/3`` verhält sich nicht
104-
so, wie es Mathematiker erwarten würden. In Python wird, falls ``m`` und
104+
so, wie es Mathematiker erwarten würden. In Python 2 wird, falls ``m`` und
105105
``n`` Integer sind, auch ``m/n`` als Integer behandelt, es ist
106106
nämlich der Quotient von ``m`` geteilt durch ``n``. Daher ist
107107
``2/3=0``. Es wurde in der Pythoncommunity darüber geredet, ob in
@@ -121,7 +121,7 @@ sein, also verhält sich Sage an manchen Stellen anders als Python.
121121
Rational Field
122122
sage: 2//3
123123
0
124-
sage: int(2)/int(3)
124+
sage: int(2)/int(3) # optional - python2
125125
0
126126

127127
- **Große ganze Zahlen:** Python besitzt von Hause aus Unterstützung

src/doc/en/reference/coding/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Linear codes and related constructions
3838
sage/coding/sd_codes
3939
sage/coding/guava
4040
sage/coding/binary_code
41+
sage/coding/reed_muller_code
4142

4243
Bounds on codes
4344
---------------

src/doc/en/thematic_tutorials/structures_in_coding_theory.rst

+19
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,15 @@ To do that, just add the following line at the end of your file::
252252

253253
BinaryRepetitionCode._registered_encoders["RepetitionGeneratorMatrixEncoder"] = BinaryRepetitionCodeGeneratorMatrixEncoder
254254

255+
.. NOTE::
256+
257+
In case you are implementing a generic encoder (an encoder which works
258+
with any family of linear codes), please add the following statement in
259+
``AbstractLinearCode``'s constructor instead:
260+
``self._registered_encoders["EncName"] = MyGenericEncoder``.
261+
This will make it immediately available to any code
262+
class which inherits from `AbstractLinearCode`.
263+
255264
Summary of the implementation for encoders
256265
------------------------------------------
257266

@@ -375,6 +384,16 @@ Also put this line to set ``decoder_type``::
375384

376385
BinaryRepetitionCode._decoder_type = {"hard-decision", "unique"}
377386

387+
388+
.. NOTE::
389+
390+
In case you are implementing a generic decoder (a decoder which works
391+
with any family of linear codes), please add the following statement in
392+
``AbstractLinearCode``'s constructor instead:
393+
``self._registered_decoders["DecName"] = MyGenericDecoder``.
394+
This will make it immediately available to any code
395+
class which inherits from `AbstractLinearCode`.
396+
378397
Summary of the implementation for decoders
379398
------------------------------------------
380399

src/doc/en/tutorial/programming.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ the Python int ``1`` is unique, but the Sage Integer ``1`` is not:
684684

685685
sage: 1 is 2/2
686686
False
687-
sage: int(1) is int(2)/int(2)
687+
sage: int(1) is int(2)/int(2) # optional - python2
688688
True
689689
sage: 1 is 1
690690
False

src/doc/fr/tutorial/afterword.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,11 @@ Aussi, Sage se comporte différemment de Python à plusieurs égards.
113113
10
114114

115115
- **Division entière :** L'expression Python ``2/3`` ne se comporte pas
116-
de la manière à laquelle s'attendraient des mathématiciens. En Python, si
116+
de la manière à laquelle s'attendraient des mathématiciens. En Python 2, si
117117
``m`` et ``n`` sont de type int, alors ``m/n`` est aussi de type int, c'est
118-
le quotient entier de ``m`` par ``n``. Par conséquent, ``2/3=0``. Il
119-
y a eu dans la communauté Python des débats sur une éventuelle
120-
modification du langage de sorte que ``2/3`` renvoie un flottant
121-
``0.6666...`` et que ce soit ``2//3`` qui renvoie ``0``.
118+
le quotient entier de ``m`` par ``n``. Par conséquent, ``2/3=0``. Ce
119+
comportement est différent en Python 3, où ``2/3`` renvoie un flottant
120+
``0.6666...`` et c'est ``2//3`` qui renvoie ``0``.
122121

123122
Dans l'interpréteur Sage, nous réglons cela en encapsulant
124123
automatiquement les entiers litéraux par ``Integer( )`` et en faisant
@@ -133,7 +132,7 @@ Aussi, Sage se comporte différemment de Python à plusieurs égards.
133132
Rational Field
134133
sage: 2//3
135134
0
136-
sage: int(2)/int(3)
135+
sage: int(2)/int(3) # optional - python2
137136
0
138137

139138
- **Entiers longs :** Python possède nativement un support pour les entiers de

src/doc/ja/tutorial/afterword.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Pythonの数学機能には混乱を招きがちな面があり,SageにはPyth
9696
Rational Field
9797
sage: 2//3
9898
0
99-
sage: int(2)/int(3)
99+
sage: int(2)/int(3) # optional - python2
100100
0
101101

102102
- **長整数:** Python本体は,C言語由来のint型だけではなく任意精度整数をサポートしている.

src/doc/ja/tutorial/programming.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ Sageにおける異種オブジェクト間の比較演算では,まず対象
661661

662662
sage: 1 is 2/2
663663
False
664-
sage: int(1) is int(2)/int(2)
664+
sage: int(1) is int(2)/int(2) # optional - python2
665665
True
666666
sage: 1 is 1
667667
False

src/doc/pt/tutorial/afterword.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ se comporta diferentemente do Python em diversas situações.
9494
'3^2'
9595

9696
- **Divisão por inteiros:** A expressão em Python ``2/3`` não se
97-
comporta da forma que um matemático esperaria. Em Python, se ``m``
97+
comporta da forma que um matemático esperaria. Em Python 2, se ``m``
9898
e ``n`` são inteiros (int), então ``m/n`` também é um inteiro
9999
(int), a saber, o quociente de ``m`` dividido por ``n``. Portanto
100100
``2/3=0``. Tem havido discussões na comunidade do Python para
@@ -113,7 +113,7 @@ se comporta diferentemente do Python em diversas situações.
113113
Rational Field
114114
sage: 2//3
115115
0
116-
sage: int(2)/int(3)
116+
sage: int(2)/int(3) # optional - python2
117117
0
118118

119119
- **Inteiros longos:** O Python possui suporte nativo para inteiros

src/doc/pt/tutorial/programming.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ o int ``1`` do Python é único, mas o Inteiro ``1`` do Sage não é.
705705

706706
sage: 1 is 2/2
707707
False
708-
sage: int(1) is int(2)/int(2)
708+
sage: int(1) is int(2)/int(2) # optional - python2
709709
True
710710
sage: 1 is 1
711711
False

src/doc/ru/tutorial/afterword.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Sage ведет себя немного другим образом.
8989
'3^2'
9090

9191
- **Деление целых чисел:** Выражение ``2/3`` в Python означает не то, чего
92-
ожидает математик. В Python, если ``m`` и ``n`` - целые числа, то ``m/n``
92+
ожидает математик. В Python 2, если ``m`` и ``n`` - целые числа, то ``m/n``
9393
также целое число, если быть точнее, то целая часть от деления ``m`` на
9494
``n``. Следовательно ``2/3=0``. В сообществе Python обсуждается вариант
9595
изменения оператора так, чтобы ``2/3`` возвращало число с плавающей точкой
@@ -106,7 +106,7 @@ Sage ведет себя немного другим образом.
106106
Rational Field
107107
sage: 2//3
108108
0
109-
sage: int(2)/int(3)
109+
sage: int(2)/int(3) # optional - python2
110110
0
111111

112112
- **Большие целые числа:** Python имеет встроенную поддержку целых чисел

0 commit comments

Comments
 (0)