From e1887696c08a3734de7a80b5c194d90790344204 Mon Sep 17 00:00:00 2001 From: Joseph Coffland Date: Wed, 9 Apr 2014 09:56:49 -0700 Subject: [PATCH] Fixed package version --- SConstruct | 9 ++++++--- setup.py | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 45c2a1c..7f4741b 100644 --- a/SConstruct +++ b/SConstruct @@ -16,11 +16,14 @@ conf = env.CBConfigure() # Version try: version = env.FAHClientVersion() -except: +except Exception, e: + print e version = '0.0.0' + env.Replace(PACKAGE_VERSION = version) -# Config vars -env.Replace(PACKAGE_VERSION = version) +f = open('version.txt', 'w') +f.write(version) +f.close() if env['PLATFORM'] != 'darwin': env['package_arch'] = 'noarch' diff --git a/setup.py b/setup.py index c03fd57..c38ce8b 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ else: ) try: - version = open('version/version.txt').read().strip() + version = open('version.txt').read().strip() except: version = None if version is not None: