[version] handling version in a file

This commit is contained in:
Max Zwiessele 2015-09-09 09:28:42 +01:00
parent 60aca4a635
commit ac70d3da21
4 changed files with 8 additions and 7 deletions

View file

@ -6,12 +6,11 @@ import sys
from setuptools import setup, Extension
import numpy as np
# Version number
__version__ = '0.8.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
__version__ = read('GPy/VERSION')
#Mac OS X Clang doesn't support OpenMP th the current time.
#This detects if we are building on a Mac
def ismac():
@ -72,7 +71,8 @@ setup(name = 'GPy',
package_dir={'GPy': 'GPy'},
package_data = {'GPy': ['defaults.cfg', 'installation.cfg',
'util/data_resources.json',
'util/football_teams.json']},
'util/football_teams.json',
'VERSION']},
include_package_data = True,
py_modules = ['GPy.__init__'],
test_suite = 'GPy.testing',