Skip to content
Snippets Groups Projects
Commit 93632da2 authored by dh00601's avatar dh00601
Browse files

fixed reading out VERSION

parent be9c5fb2
No related branches found
No related tags found
No related merge requests found
......@@ -2,3 +2,4 @@ include Makefile
include src/*.c
include include/*.h
include README.md
include VERSION
......@@ -21,6 +21,8 @@ def version():
with open("VERSION") as file:
return file.read().strip()
VERSION_NUMBER = version()
# Functions
def readme():
"""Opens readme file and returns content"""
......@@ -232,7 +234,7 @@ class CustomBuildCommand(distutils.command.build.build):
setup(
name="binarycpython",
version=version(),
version=VERSION_NUMBER,
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(
",".join(REQUIRED_BINARY_C_VERSIONS),
",".join(REQUIRED_BINARY_C_VERSIONS),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment