mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Update to sagemath 6.8
This commit is contained in:
parent
b4699213da
commit
3aa9b0c734
32 changed files with 806 additions and 615 deletions
|
@ -1,6 +1,6 @@
|
|||
diff -up src/doc/common/builder.py.orig src/doc/common/builder.py
|
||||
--- src/doc/common/builder.py.orig 2015-04-03 14:56:53.775377558 -0300
|
||||
+++ src/doc/common/builder.py 2015-04-03 14:56:58.208377728 -0300
|
||||
--- src/doc/common/builder.py.orig 2015-12-22 10:55:07.586513923 -0200
|
||||
+++ src/doc/common/builder.py 2015-12-22 10:55:10.131514020 -0200
|
||||
@@ -32,7 +32,7 @@ from sage.env import SAGE_DOC, SAGE_SRC
|
||||
# SAGE_DOC, LANGUAGES, SPHINXOPTS, PAPER, OMIT,
|
||||
# PAPEROPTS, ALLSPHINXOPTS, NUM_THREADS, WEBSITESPHINXOPTS
|
||||
|
@ -10,9 +10,39 @@ diff -up src/doc/common/builder.py.orig src/doc/common/builder.py
|
|||
exec(compile(open(fpath).read(), fpath, 'exec'))
|
||||
|
||||
|
||||
@@ -303,12 +303,12 @@ class AllBuilder(object):
|
||||
# apply_async does not, so don't use it.
|
||||
x = pool.map_async(build_other_doc, L, 1)
|
||||
try:
|
||||
- x.get(99999)
|
||||
+ x.get(3600)
|
||||
pool.close()
|
||||
pool.join()
|
||||
except Exception:
|
||||
- pool.terminate()
|
||||
if ABORT_ON_ERROR:
|
||||
+ pool.terminate()
|
||||
raise
|
||||
logger.warning("Elapsed time: %.1f seconds."%(time.time()-start))
|
||||
logger.warning("Done building the documentation!")
|
||||
@@ -500,12 +500,12 @@ class ReferenceBuilder(AllBuilder):
|
||||
# (See comment in AllBuilder._wrapper about using map instead of apply.)
|
||||
x = pool.map_async(build_ref_doc, L, 1)
|
||||
try:
|
||||
- x.get(99999)
|
||||
+ x.get(3600)
|
||||
pool.close()
|
||||
pool.join()
|
||||
except Exception:
|
||||
- pool.terminate()
|
||||
if ABORT_ON_ERROR:
|
||||
+ pool.terminate()
|
||||
raise
|
||||
# The html refman must be build at the end to ensure correct
|
||||
# merging of indexes and inventories.
|
||||
diff -up src/doc/common/conf.py.orig src/doc/common/conf.py
|
||||
--- src/doc/common/conf.py.orig 2015-04-03 14:56:53.777377558 -0300
|
||||
+++ src/doc/common/conf.py 2015-04-03 14:56:58.208377728 -0300
|
||||
--- src/doc/common/conf.py.orig 2015-12-22 10:55:07.588513923 -0200
|
||||
+++ src/doc/common/conf.py 2015-12-22 10:55:10.132514020 -0200
|
||||
@@ -1,5 +1,5 @@
|
||||
import sys, os, sphinx
|
||||
-from sage.env import SAGE_DOC
|
||||
|
@ -20,7 +50,7 @@ diff -up src/doc/common/conf.py.orig src/doc/common/conf.py
|
|||
from datetime import date
|
||||
|
||||
def get_doc_abspath(path):
|
||||
@@ -203,8 +203,7 @@ if (os.environ.get('SAGE_DOC_MATHJAX', '
|
||||
@@ -224,8 +224,7 @@ if (os.environ.get('SAGE_DOC_MATHJAX', '
|
||||
from sage.misc.latex_macros import sage_mathjax_macros
|
||||
html_theme_options['mathjax_macros'] = sage_mathjax_macros()
|
||||
|
||||
|
@ -30,10 +60,27 @@ diff -up src/doc/common/conf.py.orig src/doc/common/conf.py
|
|||
mathjax_relative = os.path.join('sagenb','data','mathjax')
|
||||
|
||||
# It would be really nice if sphinx would copy the entire mathjax directory,
|
||||
diff -up src/doc/common/multidocs.py.orig src/doc/common/multidocs.py
|
||||
--- src/doc/common/multidocs.py.orig 2015-12-22 10:55:07.591513923 -0200
|
||||
+++ src/doc/common/multidocs.py 2015-12-22 10:55:10.132514020 -0200
|
||||
@@ -73,8 +73,11 @@ def merge_environment(app, env):
|
||||
for ind in newalldoc:
|
||||
# treat subdocument source as orphaned file and don't complain
|
||||
md = env.metadata.get(ind, set())
|
||||
- md.add('orphan')
|
||||
- env.metadata[ind] = md
|
||||
+ try:
|
||||
+ md.add('orphan')
|
||||
+ env.metadata[ind] = md
|
||||
+ except AttributeError:
|
||||
+ env.metadata[ind] = {'orphan'}
|
||||
# merge the citations
|
||||
newcite = {}
|
||||
for ind, (path, tag) in docenv.citations.iteritems():
|
||||
diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
|
||||
--- src/sage/doctest/control.py.orig 2015-04-03 14:56:32.065376727 -0300
|
||||
+++ src/sage/doctest/control.py 2015-04-03 14:56:58.209377728 -0300
|
||||
@@ -89,7 +89,6 @@ class DocTestDefaults(SageObject):
|
||||
--- src/sage/doctest/control.py.orig 2015-12-22 10:55:07.592513923 -0200
|
||||
+++ src/sage/doctest/control.py 2015-12-22 10:55:27.152514672 -0200
|
||||
@@ -90,7 +90,6 @@ class DocTestDefaults(SageObject):
|
||||
self.valgrind = False
|
||||
self.massif = False
|
||||
self.cachegrind = False
|
||||
|
@ -41,7 +88,7 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
|
|||
self.failed = False
|
||||
self.new = False
|
||||
self.show_skipped = False
|
||||
@@ -211,7 +210,7 @@ class DocTestController(SageObject):
|
||||
@@ -212,7 +211,7 @@ class DocTestController(SageObject):
|
||||
if options.gdb or options.debug:
|
||||
# Interactive debuggers: "infinite" timeout
|
||||
options.timeout = 0
|
||||
|
@ -50,7 +97,15 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
|
|||
# Non-interactive debuggers: 48 hours
|
||||
options.timeout = int(os.getenv('SAGE_TIMEOUT_VALGRIND', 48 * 60 * 60))
|
||||
elif options.long:
|
||||
@@ -890,13 +889,8 @@ class DocTestController(SageObject):
|
||||
@@ -545,7 +544,6 @@ class DocTestController(SageObject):
|
||||
def all_files():
|
||||
from glob import glob
|
||||
self.files.append(opj(SAGE_SRC, 'sage'))
|
||||
- self.files.append(opj(SAGE_SRC, 'sage_setup'))
|
||||
self.files.append(opj(SAGE_SRC, 'doc', 'common'))
|
||||
self.files.extend(glob(opj(SAGE_SRC, 'doc', '[a-z][a-z]')))
|
||||
self.options.sagenb = True
|
||||
@@ -940,13 +938,8 @@ class DocTestController(SageObject):
|
||||
elif opt.cachegrind:
|
||||
toolname = "cachegrind"
|
||||
flags = os.getenv("SAGE_CACHEGRIND_FLAGS", "")
|
||||
|
@ -64,7 +119,7 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
|
|||
if "%s" in flags:
|
||||
flags %= toolname + ".%p" # replace %s with toolname
|
||||
cmd += flags + sage_cmd
|
||||
@@ -956,10 +950,10 @@ class DocTestController(SageObject):
|
||||
@@ -1006,10 +999,10 @@ class DocTestController(SageObject):
|
||||
0
|
||||
"""
|
||||
opt = self.options
|
||||
|
@ -78,9 +133,9 @@ diff -up src/sage/doctest/control.py.orig src/sage/doctest/control.py
|
|||
return self.run_val_gdb()
|
||||
else:
|
||||
diff -up src/sage/interfaces/singular.py.orig src/sage/interfaces/singular.py
|
||||
--- src/sage/interfaces/singular.py.orig 2015-04-03 14:56:32.066376727 -0300
|
||||
+++ src/sage/interfaces/singular.py 2015-04-03 14:56:58.210377728 -0300
|
||||
@@ -2149,7 +2149,7 @@ def generate_docstring_dictionary():
|
||||
--- src/sage/interfaces/singular.py.orig 2015-12-22 10:55:07.594513923 -0200
|
||||
+++ src/sage/interfaces/singular.py 2015-12-22 10:55:10.134514020 -0200
|
||||
@@ -2232,7 +2232,7 @@ def generate_docstring_dictionary():
|
||||
nodes.clear()
|
||||
node_names.clear()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue