File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 55# without any warranty.
66set -e
77SAGE_IMAGE=` python2 -c " import setup; print setup.get_all_version_names('${SAGE_SERVER} index.html',${SAGE_AGE} )" `
8+ echo " Obtaining Sage image:"
9+ echo $SAGE_IMAGE
810cd $HOME
911if [ ! -x SageMath/sage ] ; then
1012 rm -f SageMath.tar.bz2
Original file line number Diff line number Diff line change @@ -30,8 +30,11 @@ def readfile(filename):
3030# Check the right Sage version
3131class build (build_module .build ):
3232 def run (self ):
33- from sagemath .check_version import check_version
34- check_version (sage_required_version )
33+ errno = os .system ('sage -python -c "from sagemath.check_version import check_version; check_version(%s)"' % sage_required_version )
34+ if errno != 0 :
35+ sys .exit (1 )
36+ # from sagemath.check_version import check_version
37+ # check_version(sage_required_version)
3538 build_module .build .run (self )
3639
3740# For the tests
You can’t perform that action at this time.
0 commit comments