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

Commit 14f2647

Browse files
committed
Merge branch 'develop' into t/22844/symbolic_limit
2 parents bd0a226 + 46a728a commit 14f2647

File tree

185 files changed

+6082
-5308
lines changed

Some content is hidden

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

185 files changed

+6082
-5308
lines changed

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 8.0.beta4, Release Date: 2017-04-27
1+
SageMath version 8.0.beta5, Release Date: 2017-05-04

build/bin/sage-pip-install

+25-8
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,18 @@ if [ "$1" != "." ]; then
3131
exit 1
3232
fi
3333

34+
35+
if [ "$SAGE_PYTHON3" = yes ]; then
36+
PYTHON=python3
37+
PIP=pip3
38+
else
39+
PYTHON=python2
40+
PIP=pip2
41+
fi
42+
43+
3444
# Find out the name of the package that we are installing
35-
name="$(python setup.py --name)"
45+
name="$($PYTHON setup.py --name)"
3646

3747
if [ $? -ne 0 ]; then
3848
echo >&2 "Error: could not determine package name"
@@ -46,29 +56,36 @@ if [ $(echo "$name" | wc -l) -gt 1 ]; then
4656
echo >&2 "line as the package name: $name"
4757
fi
4858

49-
# We should avoid running pip while uninstalling a package because that
59+
60+
# We should avoid running pip2/3 while uninstalling a package because that
5061
# is prone to race conditions. Therefore, we use a lockfile while
51-
# running pip. This is implemented in the Python script pip-lock.
62+
# running pip. This is implemented in the Python script pip2/3-lock.
5263

5364
# Keep uninstalling as long as it succeeds
5465
while true; do
55-
out=$(pip-lock uninstall --disable-pip-version-check -y "$name" 2>&1)
66+
out=$($PIP-lock uninstall --disable-pip-version-check -y "$name" 2>&1)
5667
if [ $? -ne 0 ]; then
5768
break
5869
fi
5970
echo "$out"
6071
done
6172

6273
# Not ideal, but this is the easiest way to check if the package
63-
# was not installed to begin with (which pip treats as an error).
74+
# was not installed to begin with (which pip2/3 treats as an error).
6475
# If it wasn't, then we proceed quietly; if it was installed show the
6576
# uninstallation output and error out.
6677
if [[ "$out" != *"not installed" ]]; then
6778
echo >&2 "$out"
6879
exit 1
6980
fi
7081

71-
# Finally actually do the installation (the "SHARED" tells pip-lock
82+
# Finally actually do the installation (the "SHARED" tells pip2/3-lock
7283
# to apply a shared lock)
73-
echo "Installing package $name using pip"
74-
exec pip-lock SHARED install $pip_install_flags .
84+
echo "Installing package $name using $PIP"
85+
86+
$PIP-lock SHARED install $pip_install_flags .
87+
if [ $? -ne 0 ]; then
88+
echo >&2 "Error: installing with $PIP failed"
89+
exit 3
90+
fi
91+

build/bin/sage-python23

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
4+
# Run the Python interpreter that we are currently building Sage with
5+
#
6+
# An existing Python is a build-time dependency for Sage, but
7+
# sometimes packages need to specifically run the one in Sage and not
8+
# just any Python interpreter.
9+
#
10+
# This is similar to the sage-pip-install script, which you should be
11+
# using for installing Python packages if at all possible.
12+
13+
14+
if [ "$SAGE_PYTHON3" = yes ]; then
15+
PYTHON="$SAGE_LOCAL/bin/python3"
16+
else
17+
PYTHON="$SAGE_LOCAL/bin/python2"
18+
fi
19+
20+
21+
exec $PYTHON "$@"

build/pkgs/brial/spkg-install

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ cd src
1717
# C++11 workaround https://trac.sagemath.org/ticket/20926
1818
export CXXFLAGS="$CXXFLAGS -std=c++98"
1919

20+
export PYTHON=sage-python23
21+
2022
./configure \
2123
--prefix="$SAGE_LOCAL" \
2224
--libdir="$SAGE_LOCAL/lib" \

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=965fb15ff18f39c5cf38fcc8ff40d7450f70a122
3-
md5=7b67114fe41bb58afac9386c621d2b88
4-
cksum=821175052
2+
sha1=339f2474b789d33051dde8f69d047ae723a36379
3+
md5=9bb01c255b39648bb19f62a3fa24a80d
4+
cksum=2072910001
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
218
1+
219

build/pkgs/cvxopt/spkg-check

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for di in "$CUR"/src/examples/doc/chap* ; do
4141
cd "$di"
4242
for i in `ls | grep -v bin` ; do
4343
echo "Testing $i ..."
44-
python $i
44+
sage-python23 $i
4545
if [ $? -ne 0 ]; then
4646
echo >&2 "Error: test $di/$i failed"
4747
exit 1

build/pkgs/gambit/spkg-install

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if [ $? -ne 0 ]; then
2121
fi
2222

2323
cd src/python
24-
python setup.py --no-user-cfg build install
24+
sage-python23 setup.py --no-user-cfg build install
2525

2626
if [ $? -ne 0 ]; then
2727
echo "Error installing Python API"

build/pkgs/gap_jupyter/SPKG.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
= jupyter-kernel-gap =
2+
3+
== Description ==
4+
5+
Jupyter kernel for GAP
6+
7+
This wrapper-kernel is a Jupyter kernel for the GAP Computer Algebra System
8+
based on the same ideas as the bash wrapper kernel.
9+
10+
== License ==
11+
12+
3-Clause BSD License
13+
14+
== Upstream Contact ==
15+
16+
* https://github.com/gap-packages/jupyter-gap

build/pkgs/gap_jupyter/checksums.ini

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tarball=jupyter-kernel-gap-VERSION.tar.gz
2+
sha1=9536aa352c6dee815ae5179e3971bfb9216f8eda
3+
md5=f5853cc8cd62ce495be8d3c8bdb2500f
4+
cksum=3578940226

build/pkgs/gap_jupyter/dependencies

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$(PYTHON) | pip ipython gap
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.9

build/pkgs/gap_jupyter/spkg-install

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
cd src && $PIP_INSTALL .

build/pkgs/gap_jupyter/type

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
optional

build/pkgs/gmpy2/spkg-check

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
cd src/test && python runtests.py
3+
cd src/test && sage-python23 runtests.py

build/pkgs/libhomfly/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=libhomfly-VERSION.tar.gz
2-
sha1=65c1ffc5814061323534e79d9ea5d523adb3ec57
3-
md5=1d56c477a1f5e4f934c3fccf5d560948
4-
cksum=233275648
2+
sha1=e6824c228c1313c7bd22ec68e1fcbb2a227e0edf
3+
md5=767dcfbccf17d5d076361d9633bb9e8e
4+
cksum=973275567
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0
1+
1.0r2

build/pkgs/matplotlib/make-setup-config.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
from six.moves import configparser as ConfigParser
1+
try:
2+
from configparser import SafeConfigParser # Python 3
3+
except ImportError:
4+
from ConfigParser import SafeConfigParser # Python 2
25
import os
36

4-
config = ConfigParser.SafeConfigParser()
7+
config = SafeConfigParser()
58

69
config.add_section('directories')
710
config.set('directories', 'basedirlist', os.environ['SAGE_LOCAL'])

build/pkgs/matplotlib/spkg-install

-6
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,3 @@ if [ $? -ne 0 ]; then
2424
echo "Error installing matplotlib package."
2525
exit 1
2626
fi
27-
28-
# Print value of MPLCONFIGDIR
29-
VERSION=`python -c 'import pkg_resources; print(pkg_resources.get_distribution("matplotlib").version)'`
30-
echo
31-
echo "When Sage runs, MPLCONFIGDIR will be set to '\$DOT_SAGE/matplotlib-$VERSION'."
32-
echo

build/pkgs/ntl/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=ntl-VERSION.tar.gz
2-
sha1=1ab5908743079103eeca4a4c6ff7de85042c28e9
3-
md5=16b3449335163a753d45b5f1231bee23
4-
cksum=368444531
2+
sha1=ab2e7853a73e01227316215903073ebce54760ed
3+
md5=b682166b8652e4437c86154698b9831e
4+
cksum=2237621894

build/pkgs/ntl/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.1.0
1+
10.3.0

build/pkgs/numpy/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=numpy-VERSION.tar.gz
2-
sha1=5fbfde55b1d4b07cc449b10395472ffa41ec00c1
3-
md5=2f44a895a8104ffac140c3a70edbd450
4-
cksum=4092335543
2+
sha1=8eb0e29bf93c2f283d7691587b6322686d5baf0d
3+
md5=2abe6efb8ea0ac1716d1fc5fa90cbacf
4+
cksum=1617766273

build/pkgs/numpy/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.1.p1
1+
1.12.1

build/pkgs/numpy/patches/numpy-1.10.1-asarray_conversion.patch

-28
This file was deleted.

build/pkgs/numpy/spkg-install

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ else
3636
export LDFLAGS="${LDFLAGS} -shared"
3737
fi
3838

39-
python ../lapack_conf.py
39+
sage-python23 ../lapack_conf.py
4040

4141
# Make sure that the fortran objects are compiled with -fPIC
4242
export FFLAGS="$FFLAGS -fPIC"
@@ -48,7 +48,7 @@ export NUMPY_FCONFIG="config_fc --noopt --noarch"
4848

4949
rm -rf "$SAGE_LOCAL/lib/python*/site-packages/numpy"
5050

51-
python setup.py \
51+
sage-python23 setup.py \
5252
--no-user-cfg \
5353
install \
5454
--single-version-externally-managed \
@@ -58,7 +58,7 @@ python setup.py \
5858
# Touch all includes such that dependency checking works properly:
5959
# the timestamp of the includes should be *now*, not the time when
6060
# the numpy package was created.
61-
python <<EOF
61+
sage-python23 <<EOF
6262
import os
6363
os.chdir(os.environ["SAGE_ROOT"]) # Import numpy from safe location
6464
import numpy

build/pkgs/ore_algebra/checksums.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tarball=ore_algebra-VERSION.tar.gz
2-
sha1=5083b94a3429f92acc79a043302adf107bd57a63
3-
md5=48b6a6c4613981fb033ca2188f12f802
4-
cksum=3887839116
1+
tarball=ore_algebra-VERSION.tgz
2+
sha1=0c7ba5bc7b8f6e988e10011ea45af39b78014f27
3+
md5=584adda6ae7b715fa3b1f9f5d91c6e63
4+
cksum=1732945549
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.p0
1+
0.3

build/pkgs/pillow/spkg-install

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ fi
99
cd src
1010

1111
# Delete old version
12-
site_packages="$SAGE_LOCAL/lib/python*/site-packages"
13-
rm -rf "$site_packages"/PIL "$site_packages"/PIL-*.egg* "$site_packages"/Pillow-*.egg*
12+
rm -rf \
13+
"$SAGE_LOCAL"/lib/python*/site-packages/PIL \
14+
"$SAGE_LOCAL"/lib/python*/site-packages/PIL-*.egg* \
15+
"$SAGE_LOCAL"/lib/python*/site-packages/Pillow-*.egg*
1416

1517
# Note: Avoid shared libraries inside egg files, Trac #19467
16-
python setup.py \
18+
sage-python23 setup.py \
1719
--no-user-cfg \
1820
build_ext \
1921
--disable-jpeg \

build/pkgs/pip/dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$(PYTHON) setuptools
1+
python2 python3 setuptools
22

33
----------
44
All lines of this file are ignored except the first.

build/pkgs/pip/spkg-install

+17-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
cd src
44

55
# pip can install itself!
6-
# need to use --upgrade or else pip, which is importing itself, will think
7-
# itself is already installed
8-
python -m pip install --verbose --no-index --upgrade --isolated .
6+
#
7+
# need to use --upgrade or --ignore-installed; Otherwise pip, which is
8+
# importing itself, will think itself is already installed
9+
#
10+
# Install pip3 first so pip2 overwrites local/bin/pip
11+
12+
python3 -m pip install --verbose --no-index --ignore-installed --isolated .
13+
if [ $? -ne 0 ]; then
14+
echo "Error building / installing pip3"
15+
exit 1
16+
fi
17+
18+
python2 -m pip install --verbose --no-index --ignore-installed --isolated .
19+
if [ $? -ne 0 ]; then
20+
echo "Error building / installing pip2"
21+
exit 1
22+
fi

build/pkgs/pycrypto/spkg-check

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99
cd src
1010

1111
echo "PyCrypto will now be tested"
12-
python setup.py test
12+
sage-python23 setup.py test
1313
if [ $? -ne 0 ]; then
1414
echo >&2 "Error: PyCrypto failed to pass its test suite."
1515
exit 1

build/pkgs/python2/spkg-install

+2-3
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,18 @@ rm -f "$SAGE_LOCAL/lib/python"
118118

119119
build
120120

121-
PYTHON_VERSION=$("$SAGE_LOCAL/bin/python2" -c 'import sys; print("%d.%d" % sys.version_info[:2])')
122-
123121
# On OS X with XCode 4, the presence of
124122
# $SAGE_LOCAL/lib/python2.*/config/libpython2.x.a causes problems with
125123
# GiNaC -- see #11967. It is easiest to test the version of OS X; we
126124
# delete this file if using OS X 10.6 or later (so `uname -r` returns
127125
# x.y.z with x >= 10).
128126
if [ "$UNAME" = "Darwin" ] && \
127+
PYTHON_VERSION=$("$SAGE_LOCAL/bin/python2" -c 'import sys; print("%d.%d" % sys.version_info[:2])')
129128
[ `uname -r | cut '-d.' -f1` -gt 9 ]; then
130129
rm -f "$SAGE_LOCAL/lib/python$PYTHON_VERSION/config/libpython${PYTHON_VERSION}.a"
131130
elif [ "$UNAME" = "CYGWIN" ]; then
132131
# See http://trac.sagemath.org/ticket/20437
133-
ln -sf "python/config/libpython${PYTHON_VERSION}.dll.a" "$SAGE_LOCAL/lib/libpython${PYTHON_VERSION}.dll.a"
132+
ln -sf "python$PYTHON_VERSION/config/libpython${PYTHON_VERSION}.dll.a" "$SAGE_LOCAL/lib/libpython${PYTHON_VERSION}.dll.a"
134133
fi
135134

136135
# Make sure extension modules were built correctly.

build/pkgs/python3/dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
zlib readline sqlite libpng | bzip2
1+
zlib readline sqlite libpng xz | bzip2
22

33
----------
44
All lines of this file are ignored except the first.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.1
1+
3.5.1.p0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--- a/Include/pyport.h 2017-04-07 13:26:39.000000000 -0700
2+
+++ b/Include/pyport.h 2017-04-07 13:27:54.000000000 -0700
3+
@@ -688,6 +688,12 @@
4+
#endif
5+
6+
#ifdef _PY_PORT_CTYPE_UTF8_ISSUE
7+
+#ifndef __cplusplus
8+
+ /* The workaround below is unsafe in C++ because
9+
+ * the <locale> defines these symbols as real functions,
10+
+ * with a slightly different signature.
11+
+ * See issue #10910
12+
+ */
13+
#include <ctype.h>
14+
#include <wctype.h>
15+
#undef isalnum
16+
@@ -705,6 +711,7 @@
17+
#undef toupper
18+
#define toupper(c) towupper(btowc(c))
19+
#endif
20+
+#endif
21+
22+
23+
/* Declarations for symbol visibility.

0 commit comments

Comments
 (0)