Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
0c46c2b6
Commit
0c46c2b6
authored
Nov 11, 2020
by
Nikita Sirgienko
Browse files
Make Cantor working with Sage 9.2
BUG: 428961
FIXED-IN: 20.12
parent
6c395e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/sage/cantor-execsage
View file @
0c46c2b6
...
...
@@ -2,11 +2,21 @@
export
SAGE_ROOT
=
"
$(
$1
--root
)
"
# Sage 9.2 stop source sage-env-config automatically, so do it manually
if
[[
-f
$SAGE_ROOT
"/bin/sage-env"
]]
;
then
if
[[
-f
$SAGE_ROOT
"/bin/sage-env-config"
]]
;
then
source
"
$SAGE_ROOT
/bin/sage-env-config"
>
&2
fi
.
"
$SAGE_ROOT
/bin/sage-env"
>
&2
elif
[[
-f
$SAGE_ROOT
"/local/bin/sage-env"
]]
;
then
if
[[
-f
$SAGE_ROOT
"/local/bin/sage-env-config"
]]
;
then
source
"
$SAGE_ROOT
/local/bin/sage-env-config"
>
&2
fi
.
"
$SAGE_ROOT
/local/bin/sage-env"
>
&2
elif
[[
-f
$SAGE_ROOT
"/src/bin/sage-env"
]]
;
then
if
[[
-f
$SAGE_ROOT
"/src/bin/sage-env-config"
]]
;
then
source
"
$SAGE_ROOT
/src/bin/sage-env-config"
>
&2
fi
.
"
$SAGE_ROOT
/src/bin/sage-env"
>
&2
fi
...
...
Nikita Sirgienko
@sirgienko
mentioned in commit
0f03eb01
·
Nov 11, 2020
mentioned in commit
0f03eb01
mentioned in commit 0f03eb01b34fc813e00694fa313415ca727d97ef
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment