Since sagemath 8.9 it is possible to run sage without sourcing sage-env (https://trac.sagemath.org/ticket/28225) so don't abort if it is not present.
Details
Details
- Reviewers
sirgienko - Commits
- R55:13b8d731d501: Fix sagemath backend when there is no sage-env
sagemath backend works in Arch Linux (which doesn't ship sage-env)
Diff Detail
Diff Detail
- Repository
- R55 Cantor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
But what about older versions? For example, user can use Cantor 19.12 with sage 8.1 (yes, retrograde, but this is possible). I think, we should add some checking and use something like
... else version < 8.9 exit 1
so, we won't miss situations, when we don't found sage-env for versions, where this is needed.
Comment Actions
If there is no sage-env and Sage expects it then it will throw errors itself - I don't think it's Cantor's job to detect whether the Sage install is broken. Also note that some distros (eg. gentoo) have been patching sage to run without sage-env for a while, so a simple version check wouldn't be reliable.