# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

import sys

from pkg_resources import load_entry_point
from subprocess import check_call

def main():
	check_call([sys.executable, 'setup.py', 'build_ext', '--inplace'])
	if '--with-coverage' not in sys.argv:
		sys.argv.extend(('--with-coverage', '--cover-package=cg'))

	sys.exit(
		load_entry_point('nose', 'console_scripts', 'nosetests')()
	)

if __name__ == '__main__':
	main()

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

import sys

from pkg_resources import load_entry_point
from subprocess import check_call

def main():
	check_call([sys.executable, 'setup.py', 'build_ext', '--inplace'])
	if '--with-coverage' not in sys.argv:
		sys.argv.extend(('--with-coverage', '--cover-package=cg'))

	sys.exit(
		load_entry_point('nose', 'console_scripts', 'nosetests')()
	)

if __name__ == '__main__':
	main()

# -*- coding: utf-8 -*-