mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 22:06:22 +02:00
[version] handling version in a file
This commit is contained in:
parent
60aca4a635
commit
ac70d3da21
4 changed files with 8 additions and 7 deletions
8
setup.py
8
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue