mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Update to latest upstream release
This commit is contained in:
parent
fa050d6863
commit
7b54d2115b
20 changed files with 285 additions and 834 deletions
|
@ -1,6 +1,6 @@
|
|||
diff -up src/bin/sage.orig src/bin/sage
|
||||
--- src/bin/sage.orig 2019-06-26 14:41:04.000000000 -0600
|
||||
+++ src/bin/sage 2019-06-27 11:28:35.352810438 -0600
|
||||
--- src/bin/sage.orig 2019-10-03 14:38:40.429507574 -0300
|
||||
+++ src/bin/sage 2019-10-03 14:47:00.852631198 -0300
|
||||
@@ -26,13 +26,10 @@ usage() {
|
||||
echo " file.[sage|py|spyx] -- run given .sage, .py or .spyx file"
|
||||
echo " -advanced -- list all command line options"
|
||||
|
@ -55,13 +55,13 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo " -inotebook [...] -- start the *insecure* Sage notebook (deprecated)"
|
||||
echo " -n, -notebook [...] -- start the default Sage notebook (options are the"
|
||||
echo " same as for the notebook command in Sage). See the"
|
||||
@@ -119,18 +106,11 @@ usage_advanced() {
|
||||
@@ -119,18 +106,12 @@ usage_advanced() {
|
||||
echo " Sage), passing additional options to IPython"
|
||||
echo " -ipython3 [...] -- same as above, but using Python 3"
|
||||
echo " -jupyter [...] -- run Sage's Jupyter with given arguments"
|
||||
- echo " -kash [...] -- run Sage's Kash with given arguments"
|
||||
- command -v kash &>/dev/null || \
|
||||
- echo " (not installed currently, run sage -i kash)"
|
||||
echo " (not installed currently, run sage -i kash)"
|
||||
echo " -lisp [...] -- run Lisp interpreter included with Sage"
|
||||
echo " -M2 [...] -- run Sage's Macaulay2 with given arguments"
|
||||
- command -v M2 &>/dev/null || \
|
||||
|
@ -74,7 +74,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo " -python [...] -- run the Python interpreter"
|
||||
echo " -python2 [...] -- run the Python 2 interpreter"
|
||||
echo " -python3 [...] -- run the Python 3 interpreter"
|
||||
@@ -144,55 +124,7 @@ usage_advanced() {
|
||||
@@ -144,55 +125,7 @@ usage_advanced() {
|
||||
echo
|
||||
#### 1.......................26..................................................78
|
||||
#### |.....................--.|...................................................|
|
||||
|
@ -131,7 +131,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo " -startuptime [module] -- display how long each component of Sage takes to"
|
||||
echo " start up; optionally specify a module to get more"
|
||||
echo " details about that particular module"
|
||||
@@ -226,7 +158,6 @@ usage_advanced() {
|
||||
@@ -226,7 +159,6 @@ usage_advanced() {
|
||||
echo " -coverage <files> -- give info about doctest coverage of files"
|
||||
echo " -coverageall -- give summary info about doctest coverage of all"
|
||||
echo " files in the Sage library"
|
||||
|
@ -139,7 +139,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo " -search_src <string> -- search through all the Sage library code for string"
|
||||
echo " -search_doc <string> -- search through the Sage documentation for string"
|
||||
echo " -grep <string> -- same as -search_src"
|
||||
@@ -252,16 +183,6 @@ usage_advanced() {
|
||||
@@ -252,16 +184,6 @@ usage_advanced() {
|
||||
echo
|
||||
#### 1.......................26..................................................78
|
||||
#### |.....................--.|...................................................|
|
||||
|
@ -156,7 +156,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo "Valgrind memory debugging:"
|
||||
echo " -cachegrind -- run Sage using Valgrind's cachegrind tool. The log"
|
||||
echo " files are named sage-cachegrind.PID can be found in"
|
||||
@@ -275,9 +196,6 @@ usage_advanced() {
|
||||
@@ -275,9 +197,6 @@ usage_advanced() {
|
||||
echo " -memcheck -- run Sage using Valgrind's memcheck tool. The log"
|
||||
echo " files are named sage-memcheck.PID can be found in"
|
||||
echo " $DOT_SAGE"
|
||||
|
@ -166,7 +166,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
echo " -valgrind -- this is an alias for -memcheck"
|
||||
echo
|
||||
echo "You can also use -- before a long option, e.g., 'sage --optional'."
|
||||
@@ -287,116 +205,6 @@ usage_advanced() {
|
||||
@@ -287,116 +206,6 @@ usage_advanced() {
|
||||
|
||||
|
||||
#####################################################################
|
||||
|
@ -283,27 +283,12 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
# Report information about the Sage environment
|
||||
#####################################################################
|
||||
|
||||
@@ -425,35 +233,8 @@ if [ $# -gt 0 ]; then
|
||||
fi
|
||||
@@ -445,20 +254,6 @@ fi
|
||||
|
||||
|
||||
-#####################################################################
|
||||
-# Source sage-env ($0 is the name of this "sage" script, so we can just
|
||||
-# append -env to that). We redirect stdout to stderr, which is safer
|
||||
-# for scripts.
|
||||
-#####################################################################
|
||||
-. "$0-env" >&2
|
||||
-if [ $? -ne 0 ]; then
|
||||
- echo >&2 "Error setting environment variables by sourcing '$0-env';"
|
||||
- echo >&2 "possibly contact sage-devel (see http://groups.google.com/group/sage-devel)."
|
||||
- exit 1
|
||||
-fi
|
||||
-
|
||||
-
|
||||
# Prepare for running Sage, either interactively or non-interactively.
|
||||
sage_setup() {
|
||||
- # Check that we're not in a source tarball which hasn't been built yet (#13561).
|
||||
- if [ ! -x "$SAGE_LOCAL/bin/sage" ]; then
|
||||
- if [ ! -z "$SAGE_LOCAL" ] && [ ! -x "$SAGE_LOCAL/bin/sage" ]; then
|
||||
- echo >&2 '************************************************************************'
|
||||
- echo >&2 'It seems that you are attempting to run Sage from an unpacked source'
|
||||
- echo >&2 'tarball, but you have not compiled it yet (or maybe the build has not'
|
||||
|
@ -319,7 +304,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ ! -d "$IPYTHONDIR" ]; then
|
||||
# make sure that $DOT_SAGE exists so that ipython will happily
|
||||
# create its config directories there. If DOT_SAGE doesn't
|
||||
@@ -464,20 +245,6 @@ sage_setup() {
|
||||
@@ -469,20 +264,6 @@ sage_setup() {
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,7 +325,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
# Start an interactive Sage session, this function never returns.
|
||||
interactive_sage() {
|
||||
sage_setup
|
||||
@@ -561,16 +328,6 @@ if [ "$1" = '-lisp' -o "$1" = '--lisp' ]
|
||||
@@ -566,16 +347,6 @@ if [ "$1" = '-lisp' -o "$1" = '--lisp' ]
|
||||
exec ecl "$@"
|
||||
fi
|
||||
|
||||
|
@ -357,7 +342,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = '-maxima' -o "$1" = '--maxima' ]; then
|
||||
shift
|
||||
exec maxima "$@"
|
||||
@@ -601,11 +358,6 @@ if [ "$1" = '--pip3' ]; then
|
||||
@@ -606,11 +377,6 @@ if [ "$1" = '--pip3' ]; then
|
||||
exec python3 -m pip "$@"
|
||||
fi
|
||||
|
||||
|
@ -369,7 +354,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = '-python' -o "$1" = '--python' ]; then
|
||||
shift
|
||||
if [ "$SAGE_PYTHON3" = 'yes' ]; then
|
||||
@@ -645,16 +397,6 @@ if [ "$1" = '-jupyter' -o "$1" = '--jupy
|
||||
@@ -650,16 +416,6 @@ if [ "$1" = '-jupyter' -o "$1" = '--jupy
|
||||
exec jupyter "$@"
|
||||
fi
|
||||
|
||||
|
@ -386,7 +371,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = '-sh' -o "$1" = '--sh' ]; then
|
||||
# AUTHORS:
|
||||
# - Carl Witty and William Stein: initial version
|
||||
@@ -774,20 +516,6 @@ EOF
|
||||
@@ -779,20 +535,6 @@ EOF
|
||||
fi
|
||||
|
||||
#####################################################################
|
||||
|
@ -407,7 +392,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
# File conversion
|
||||
#####################################################################
|
||||
|
||||
@@ -818,11 +546,6 @@ fi
|
||||
@@ -823,11 +565,6 @@ fi
|
||||
# Run Sage's versions of the standard Algebra/Geometry etc. software
|
||||
#####################################################################
|
||||
|
||||
|
@ -419,7 +404,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [[ "$1" =~ ^--notebook=.* || "$1" =~ ^-n=.* || "$1" =~ ^-notebook=.* ]] ; then
|
||||
sage-cleaner &>/dev/null &
|
||||
exec sage-notebook "$@"
|
||||
@@ -833,13 +556,6 @@ if [ "$1" = "-notebook" -o "$1" = '--not
|
||||
@@ -838,13 +575,6 @@ if [ "$1" = "-notebook" -o "$1" = '--not
|
||||
exec sage-notebook "$@"
|
||||
fi
|
||||
|
||||
|
@ -433,7 +418,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = "-inotebook" -o "$1" = '--inotebook' ]; then
|
||||
shift
|
||||
sage-cleaner &>/dev/null &
|
||||
@@ -858,34 +574,15 @@ if [ "$1" = '-grepdoc' -o "$1" = "--grep
|
||||
@@ -863,31 +593,12 @@ if [ "$1" = '-grepdoc' -o "$1" = "--grep
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -465,12 +450,8 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
+if [ "$1" = '-t' -o "$1" = '-tp' ]; then
|
||||
sage_setup
|
||||
export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
|
||||
- if [ "$1" = '-tp' -o "$1" = '-btp' ]; then
|
||||
+ if [ "$1" = '-tp' ]; then
|
||||
shift
|
||||
exec sage-runtests -p "$@"
|
||||
else
|
||||
@@ -894,10 +591,7 @@ if [ "$1" = '-t' -o "$1" = '-bt' -o "$1"
|
||||
if [ "$1" = '-tp' -o "$1" = '-btp' ]; then
|
||||
@@ -899,16 +610,6 @@ if [ "$1" = '-t' -o "$1" = '-bt' -o "$1"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -478,11 +459,16 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
- if [ "$1" = '-btnew' ]; then
|
||||
- build_sage
|
||||
- fi
|
||||
+if [ "$1" = '-tnew' ]; then
|
||||
- shift
|
||||
- sage_setup
|
||||
- export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
|
||||
- exec sage-runtests --new "$@"
|
||||
-fi
|
||||
-
|
||||
if [ "$1" = '-testall' -o "$1" = "--testall" ]; then
|
||||
shift
|
||||
sage_setup
|
||||
export PYTHONIOENCODING="utf-8" # Fix encoding for doctests
|
||||
@@ -918,122 +612,6 @@ if [ "$1" = '-c' ]; then
|
||||
@@ -923,122 +624,6 @@ if [ "$1" = '-c' ]; then
|
||||
exec sage-eval "$@"
|
||||
fi
|
||||
|
||||
|
@ -605,7 +591,7 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = '-gdb' -o "$1" = "--gdb" ]; then
|
||||
shift
|
||||
sage_setup
|
||||
@@ -1083,12 +661,6 @@ if [ "$1" = '-callgrind' -o "$1" = "--ca
|
||||
@@ -1088,12 +673,6 @@ if [ "$1" = '-callgrind' -o "$1" = "--ca
|
||||
exec sage-callgrind "$@"
|
||||
fi
|
||||
|
||||
|
@ -618,25 +604,12 @@ diff -up src/bin/sage.orig src/bin/sage
|
|||
if [ "$1" = '-startuptime' -o "$1" = '--startuptime' ]; then
|
||||
exec sage-startuptime.py "$@"
|
||||
fi
|
||||
diff -up src/bin/sage-runtests.orig src/bin/sage-runtests
|
||||
--- src/bin/sage-runtests.orig 2019-06-26 14:41:04.000000000 -0600
|
||||
+++ src/bin/sage-runtests 2019-06-27 11:22:47.435227309 -0600
|
||||
@@ -95,10 +95,6 @@ if __name__ == "__main__":
|
||||
help="run doctests using Valgrind's cachegrind tool. The log "
|
||||
"files are named sage-cachegrind.PID and can be found in " +
|
||||
os.path.join(DOT_SAGE, "valgrind"))
|
||||
- parser.add_option("--omega", action="store_true", default=False,
|
||||
- help="run doctests using Valgrind's omega tool. The log "
|
||||
- "files are named sage-omega.PID and can be found in " +
|
||||
- os.path.join(DOT_SAGE, "valgrind"))
|
||||
|
||||
parser.add_option("-f", "--failed", action="store_true", default=False,
|
||||
help="doctest only those files that failed in the previous run")
|
||||
diff -up src/bin/sage-valgrind.orig src/bin/sage-valgrind
|
||||
--- src/bin/sage-valgrind.orig 2019-06-26 14:41:04.000000000 -0600
|
||||
+++ src/bin/sage-valgrind 2019-06-27 11:22:47.435227309 -0600
|
||||
@@ -1,16 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
--- src/bin/sage-valgrind.orig 2019-10-03 14:47:13.247708565 -0300
|
||||
+++ src/bin/sage-valgrind 2019-10-03 14:47:46.404915531 -0300
|
||||
@@ -4,17 +4,7 @@ if [ -z $SAGE_EXTCODE ]; then
|
||||
SAGE_EXTCODE=`${0/-valgrind} -c "from sage.env import SAGE_EXTCODE; print(SAGE_EXTCODE)"`
|
||||
fi
|
||||
|
||||
-SUPP=""
|
||||
-if [ -f "$SAGE_EXTCODE/valgrind/python.supp" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue