mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 03:39:03 -04:00
24 lines
955 B
Diff
24 lines
955 B
Diff
diff -up src/sage/libs/gap/util.pyx.orig src/sage/libs/gap/util.pyx
|
|
--- src/sage/libs/gap/util.pyx.orig 2014-02-07 12:44:48.769857619 -0200
|
|
+++ src/sage/libs/gap/util.pyx 2014-02-07 12:45:27.743859112 -0200
|
|
@@ -155,18 +155,9 @@ def gap_root():
|
|
|
|
sage: from sage.libs.gap.util import gap_root
|
|
sage: gap_root() # random output
|
|
- '/home/vbraun/opt/sage-5.3.rc0/local/gap/latest'
|
|
+ '/usr/lib/gap'
|
|
"""
|
|
- import os.path
|
|
- gapdir = os.path.join(SAGE_LOCAL, 'gap', 'latest')
|
|
- if os.path.exists(gapdir):
|
|
- return gapdir
|
|
- print 'The gap-4.5.5.spkg (or later) seems to be not installed!'
|
|
- gap_sh = open(os.path.join(SAGE_LOCAL, 'bin', 'gap')).read().splitlines()
|
|
- gapdir = filter(lambda dir:dir.strip().startswith('GAP_DIR'), gap_sh)[0]
|
|
- gapdir = gapdir.split('"')[1]
|
|
- gapdir = gapdir.replace('$SAGE_LOCAL', SAGE_LOCAL)
|
|
- return gapdir
|
|
+ return '/usr/lib/gap'
|
|
|
|
|
|
cdef initialize():
|