Codebase list logbook / 6d5b6d41-baea-4550-8468-50abf853ee3c/main scripts / travis_build.py
6d5b6d41-baea-4550-8468-50abf853ee3c/main

Tree @6d5b6d41-baea-4550-8468-50abf853ee3c/main (Download .tar.gz)

travis_build.py @6d5b6d41-baea-4550-8468-50abf853ee3c/main

9af17e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fea2298
 
9af17e1
#! /usr/bin/python
from __future__ import print_function
import ast
import os
import subprocess
import sys

_PYPY = hasattr(sys, "pypy_version_info")

if __name__ == '__main__':
    use_cython = ast.literal_eval(os.environ["USE_CYTHON"])
    if use_cython and _PYPY:
        print("PyPy+Cython configuration skipped")
    else:
        sys.exit(
            subprocess.call(
                "make cybuild test" if use_cython else "make test", shell=True)
        )