Commit ac49b44c authored by Joseph Weston's avatar Joseph Weston
Browse files

fix setup.py

parent b3e6fd4a
......@@ -44,7 +44,7 @@ def get_version_from_git():
if p.wait() != 0:
return
version = p.communicate()[0].strip()
version = p.communicate()[0].strip().decode()
if version[0] == 'v':
version = version[1:]
......@@ -127,7 +127,7 @@ class test(Command):
self.run_command('build')
major, minor = sys.version_info[:2]
lib_dir = "build/lib.{0}-{1}.{2}".format(get_platform(), major, minor)
print '**************** Tests ****************'
print('**************** Tests ****************')
if not run(argv=[__file__, '-v', '-w', lib_dir,
'-w', '../../' + TEST_MODULE]):
raise DistutilsError('at least one of the tests failed')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment