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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 25 additions & 8 deletions
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

Lines changed: 21 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 3 additions & 3 deletions
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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
218
1+
219

build/pkgs/cvxopt/spkg-check

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 16 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
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

0 commit comments

Comments
 (0)