Package list logbook / debian/0.6.0-1 scripts / test_setup.py
debian/0.6.0-1

Tree @debian/0.6.0-1 (Download .tar.gz)

test_setup.py @debian/0.6.0-1

9af17e1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
#! /usr/bin/python
import platform
import subprocess
import sys

def _execute(*args, **kwargs):
    result = subprocess.call(*args, **kwargs)
    if result != 0:
        sys.exit(result)

if __name__ == '__main__':
    python_version = platform.python_version()

    deps = [
        "execnet",
        "Jinja2",
        "nose",
        "pyzmq",
        "sqlalchemy",
    ]

    if python_version < "2.7":
        deps.append("unittest2")
    print("Setting up dependencies...")
    _execute("pip install %s" % " ".join(deps), shell=True)