diff --git a/setup.py b/setup.py
index 843d5fa627100de2e59023eba4214526504c6095..1ce9a410006f0f8cd7b5ae79bface98e724e90b2 100644
--- a/setup.py
+++ b/setup.py
@@ -1,26 +1,12 @@
 import os
-import subprocess
-import time
 from setuptools import setup, find_packages
 
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read()
 
-def get_git_commit():
-    (out, err, return_code) = run_command('git rev-list --count integration')
-    print ("commit {0}".format(return_code))
-    exit
-    return out
-
-def run_command(cmd):
-    proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
-    out, err = proc.communicate()
-    return_code = proc.returncode
-    return out, err, return_code
-
 setup(
     name = "clmctest",
-    version = get_git_commit(),
+    version = read('.build-config/git-commit-version'),
     author = "Michael Boniface",
     author_email = "mjb@it-innovation.soton.ac.uk",
     description = "FLAME CLMC Testing Module",