diff options
Diffstat (limited to 'sci-mathematics/sage/files/sage-4.5.1-fix-qepcad-path.patch')
-rw-r--r-- | sci-mathematics/sage/files/sage-4.5.1-fix-qepcad-path.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sci-mathematics/sage/files/sage-4.5.1-fix-qepcad-path.patch b/sci-mathematics/sage/files/sage-4.5.1-fix-qepcad-path.patch new file mode 100644 index 0000000..ff0c1ff --- /dev/null +++ b/sci-mathematics/sage/files/sage-4.5.1-fix-qepcad-path.patch @@ -0,0 +1,39 @@ +--- sage/interfaces/qepcad.py.orig 2010-06-28 16:37:01.000000000 +0000 ++++ sage/interfaces/qepcad.py 2010-08-01 06:42:34.142563760 +0000 +@@ -558,7 +558,7 @@ + memcells_arg = '+N%s' % memcells + else: + memcells_arg = '' +- return "env qe=%s qepcad %s"%(sage.misc.misc.SAGE_LOCAL, memcells_arg) ++ return "env qe=%s qepcad %s"%(sage.misc.misc.DOT_SAGE, memcells_arg) + + _command_info_cache = None + +@@ -579,7 +579,7 @@ + + cache = {} + +- with open('%s/bin/qepcad.help'%sage.misc.misc.SAGE_LOCAL) as help: ++ with open('%s/share/qepcad/qepcad.help'%sage.misc.misc.SAGE_LOCAL) as help: + assert(help.readline().strip() == '@') + + while True: +@@ -636,15 +636,15 @@ + EXAMPLES: + sage: from sage.interfaces.qepcad import _rewrite_qepcadrc + sage: _rewrite_qepcadrc() +- sage: from sage.misc.misc import SAGE_LOCAL +- sage: open('%s/default.qepcadrc'%SAGE_LOCAL).readlines()[-1] ++ sage: from sage.misc.misc import DOT_SAGE ++ sage: open('%s/default.qepcadrc'%DOT_SAGE).readlines()[-1] + 'SINGULAR .../local//bin' + """ + global _rewrote_qepcadrc + if _rewrote_qepcadrc: return + + SL = sage.misc.misc.SAGE_LOCAL +- fn = '%s/default.qepcadrc'%SL ++ fn = '%s/default.qepcadrc'%sage.misc.misc.DOT_SAGE + text = \ + """# THIS FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT + |