sagemath/sagemath-qepcad.patch
Jerry James 925e91dade Update to sagemath 8.2.
Also:
- Create the sagemath-data-combinatorial_designs subpackage.
- Create the sagemath-notebook-export subpackage.
- Unbundle the LaTeX makecmds style.
- Install LaTeX style files in a more canonical place.
2018-06-03 07:13:30 -06:00

59 lines
1.9 KiB
Diff

diff -up src/sage/interfaces/qepcad.py.orig src/sage/interfaces/qepcad.py
--- src/sage/interfaces/qepcad.py.orig 2018-05-05 16:21:24.000000000 -0600
+++ src/sage/interfaces/qepcad.py 2018-05-16 13:58:34.360913275 -0600
@@ -530,7 +530,7 @@ TESTS:
Check the qepcad configuration file::
- sage: with open(os.path.join(SAGE_LOCAL, 'default.qepcadrc')) as f:
+ sage: with open('/usr/share/qepcad/default.qepcadrc')) as f:
....: f.readlines()[-1]
'SINGULAR .../bin\n'
@@ -608,7 +608,6 @@ from __future__ import print_function
from __future__ import absolute_import
from six import string_types
-from sage.env import SAGE_LOCAL
import pexpect
import re
import sys
@@ -621,6 +620,8 @@ from sage.docs.instancedoc import instan
from .expect import Expect, ExpectFunction, AsciiArtString
+QEPCAD_LOCAL = "/usr/share/qepcad"
+
def _qepcad_atoms(formula):
r"""
Return the atoms of a qepcad quantifier-free formula, as a set of strings.
@@ -650,17 +651,17 @@ def _qepcad_cmd(memcells=None):
sage: from sage.interfaces.qepcad import _qepcad_cmd
sage: s = _qepcad_cmd()
- sage: s == 'env qe=%s qepcad '%SAGE_LOCAL
+ sage: s == 'env qe=/usr/share/qepcad qepcad '
True
sage: s = _qepcad_cmd(memcells=8000000)
- sage: s == 'env qe=%s qepcad +N8000000'%SAGE_LOCAL
+ sage: s == 'env qe=/usr/share/qepcad qepcad +N8000000'
True
"""
if memcells is not None:
memcells_arg = '+N%s' % memcells
else:
memcells_arg = ''
- return "env qe=%s qepcad %s"%(SAGE_LOCAL, memcells_arg)
+ return "env qe=%s qepcad %s"%(QEPCAD_LOCAL, memcells_arg)
_command_info_cache = None
@@ -685,7 +686,7 @@ def _update_command_info():
cache = {}
- with open('%s/bin/qepcad.help'%SAGE_LOCAL) as help:
+ with open('%s/bin/qepcad.help'%QEPCAD_LOCAL) as help:
assert(help.readline().strip() == '@')
while True: