Skip to content

Commit 3c99ce4

Browse files
committed
Try to force using sage -python instead of python.
1 parent e1ef53c commit 3c99ce4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# without any warranty.
66
set -e
77
SAGE_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
810
cd $HOME
911
if [ ! -x SageMath/sage ] ; then
1012
rm -f SageMath.tar.bz2

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ def readfile(filename):
3030
# Check the right Sage version
3131
class 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

0 commit comments

Comments
 (0)