Skip to content

Commit 078fd63

Browse files
committed
Added changes from working repo.
1 parent 37352e0 commit 078fd63

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

.travis-deploy-doc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "${DEPLOY_DOC
2525
git push origin gh-pages
2626
fi
2727
fi
28+
/usr/bin/killall python2

.travis-test.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#! /bin/bash
2-
# Copying and distribution of this file, with or without modification,
3-
# are permitted in any medium without royalty provided the copyright
4-
# notice and this notice are preserved. This file is offered as-is,
5-
# without any warranty.
1+
#! /bin/sh
62
set -e
7-
export PATH=$PATH:$HOME/SageMath
8-
$HOME/SageMath/sage -pip install --upgrade -i https://pypi.python.org/pypi -v sagemath
3+
4+
$HOME/SageMath/sage -pip install --upgrade -v -i https://pypi.python.org/pypi sagemath
95
$HOME/SageMath/sage -pip install --upgrade --no-index -v .
106
$HOME/SageMath/sage setup.py test
117
(cd docs && $HOME/SageMath/sage -sh -c "make html")

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: python
2-
dist: precise
32
matrix:
43
include:
54
- env: CACHE_NAME=latest DEPLOY_DOC_FROM_BRANCH=master DEPLOY_DOC_TO_REPOSITORY=mmasdeu/sage_sample

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,11 @@ def readfile(filename):
3030
# Check the right Sage version
3131
class build(build_module.build):
3232
def run(self):
33-
try:
34-
errno = os.system('''sage -python -c "from sagemath.check_version import check_version; check_version('%s')"'''%sage_required_version)
35-
except ValueError:
36-
errno = -1
37-
if errno != 0:
38-
sys.exit(1)
39-
# from sagemath.check_version import check_version
40-
# check_version(sage_required_version)
33+
from sagemath.check_version import check_version
34+
check_version(sage_required_version)
4135
build_module.build.run(self)
4236

37+
4338
# For the tests
4439
class SageTest(TestCommand):
4540
def run_tests(self):

0 commit comments

Comments
 (0)