Exemplo n.º 1
0
# -- build greenlet
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext"]

    spawn(cmd, search_path=0)


# -- find greenlet but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenlet

if not build:
    sys.path[:] = oldpath

sys.stdout.write("python %s (%s bit) using greenlet %s from %s\n" %
                 (sys.version.split()[0], bits(), greenlet.__version__, greenlet.__file__))


# -- run tests
from tests import test_collector
suite = test_collector()
result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
if result.failures:
    sys.exit(1)
Exemplo n.º 2
0
# -- build greenstack
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q", "-i"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext", "-i"]

    spawn(cmd, search_path=0)

# -- find greenstack but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenstack

if not build:
    sys.path[:] = oldpath

sys.stdout.write("python %s (%s bit) using greenstack %s from %s\n" %
                 (sys.version.split()[0], bits(), greenstack.__version__,
                  greenstack.__file__))
sys.stdout.flush()

# -- run tests
from tests import test_collector
result = unittest.TextTestRunner(verbosity=verbosity).run(
    test_collector(build_base))
if result.failures or result.errors:
    sys.exit(1)
Exemplo n.º 3
0
        build = False

# -- build greenlet
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext"]

    spawn(cmd, search_path=0)

# -- find greenlet but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenlet

if not build:
    sys.path[:] = oldpath

sys.stdout.write(
    "python %s (%s bit) using greenlet %s from %s\n" %
    (sys.version.split()[0], bits(), greenlet.__version__, greenlet.__file__))
sys.stdout.flush()

# -- run tests
from tests import test_collector
if unittest.TextTestRunner(verbosity=verbosity).run(test_collector()).failures:
    sys.exit(1)
Exemplo n.º 4
0
# -- build greenlet
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext"]

    spawn(cmd, search_path=0)


# -- find greenlet but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenlet

if not build:
    sys.path[:] = oldpath

sys.stdout.write("python %s (%s bit) using greenlet %s from %s\n" %
                 (sys.version.split()[0], bits(), greenlet.__version__, greenlet.__file__))
sys.stdout.flush()


# -- run tests
from tests import test_collector
if unittest.TextTestRunner(verbosity=verbosity).run(test_collector()).failures:
    sys.exit(1)
Exemplo n.º 5
0
# -- build greenlet
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q", "-i"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext", "-i"]

    spawn(cmd, search_path=0)


# -- find greenlet but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenlet

if not build:
    sys.path[:] = oldpath

sys.stdout.write("python %s (%s bit) using greenlet %s from %s\n" %
                 (sys.version.split()[0], bits(), greenlet.__version__, greenlet.__file__))
sys.stdout.flush()


# -- run tests
from tests import test_collector
result = unittest.TextTestRunner(verbosity=verbosity).run(test_collector(build_base))
if result.failures or result.errors:
    sys.exit(1)
Exemplo n.º 6
0
# -- build greenlet
if build:
    if verbosity == 0:
        cmd = [sys.executable, "setup.py", "-q", "build_ext", "-q", "-i"]
    else:
        cmd = [sys.executable, "setup.py", "build_ext", "-i"]

    spawn(cmd, search_path=0)

# -- find greenlet but skip the one in "."
if not build:
    oldpath = sys.path[:]
    sys.path.remove(here)

import greenlet

if not build:
    sys.path[:] = oldpath

sys.stdout.write(
    "python %s (%s bit) using greenlet %s from %s\n" %
    (sys.version.split()[0], bits(), greenlet.__version__, greenlet.__file__))
sys.stdout.flush()

# -- run tests
from tests import test_collector
if unittest.TextTestRunner(verbosity=verbosity).run(
        test_collector(build_base)).failures:
    sys.exit(1)