# TODO: replace the tasks that call binary_c-config with a single function that handles the return status a bit better.
defversion():
"""
opens VERSION and returns version number
"""
withopen("VERSION")asfile:
returnfile.read().strip()
# Functions
defreadme():
"""Opens readme file and returns content"""
...
...
@@ -224,7 +232,7 @@ class CustomBuildCommand(distutils.command.build.build):
setup(
name="binarycpython",
version="0.9.1",
version=version(),
description="""This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard and collaborators. Based on the initial set up by Jeff andrews.""".format(