mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-10 23:18:51 -04:00
59 lines
2 KiB
Diff
59 lines
2 KiB
Diff
diff -up src/sage/interfaces/qepcad.py.orig src/sage/interfaces/qepcad.py
|
|
--- src/sage/interfaces/qepcad.py.orig 2021-05-09 16:00:11.000000000 -0600
|
|
+++ src/sage/interfaces/qepcad.py 2021-05-28 11:52:46.749626841 -0600
|
|
@@ -530,7 +530,7 @@ TESTS:
|
|
|
|
Check the qepcad configuration file::
|
|
|
|
- sage: with open(os.path.join(SAGE_LOCAL, 'default.qepcadrc')) as f: # optional - qepcad
|
|
+ sage: with open('/usr/share/qepcad/default.qepcadrc')) as f: # optional - qepcad
|
|
....: f.readlines()[-1]
|
|
'SINGULAR .../bin\n'
|
|
|
|
@@ -605,7 +605,6 @@ AUTHORS:
|
|
# http://www.gnu.org/licenses/
|
|
#*****************************************************************************
|
|
|
|
-from sage.env import SAGE_LOCAL
|
|
import pexpect
|
|
import re
|
|
import sys
|
|
@@ -620,6 +619,8 @@ from .expect import Expect, ExpectFuncti
|
|
from sage.interfaces.interface import 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.
|
|
@@ -649,17 +650,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
|
|
|
|
@@ -684,7 +685,7 @@ def _update_command_info():
|
|
|
|
cache = {}
|
|
|
|
- with open(os.path.join(SAGE_LOCAL, 'bin', 'qepcad.help')) as help:
|
|
+ with open(os.path.join(QEPCAD_LOCAL, 'bin', 'qepcad.help')) as help:
|
|
assert(help.readline().strip() == '@')
|
|
|
|
while True:
|