2012-11-29 16:24:48 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
2014-08-07 10:53:18 -07:00
|
|
|
import os
|
2015-04-27 14:21:46 +01:00
|
|
|
from setuptools import setup, Extension
|
|
|
|
|
import numpy as np
|
2012-11-29 16:24:48 +00:00
|
|
|
|
|
|
|
|
# Version number
|
2014-11-28 08:54:06 +00:00
|
|
|
version = '0.6.1'
|
2012-11-29 16:24:48 +00:00
|
|
|
|
|
|
|
|
def read(fname):
|
2014-07-29 22:51:11 +01:00
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
2012-11-29 16:24:48 +00:00
|
|
|
|
2015-04-27 20:53:36 +01:00
|
|
|
#compile_flags = ["-march=native", '-fopenmp', '-O3', ]
|
|
|
|
|
compile_flags = [ '-fopenmp', '-O3', ]
|
2015-04-27 14:21:46 +01:00
|
|
|
|
|
|
|
|
ext_mods = [Extension(name='GPy.kern._src.stationary_cython',
|
|
|
|
|
sources=['GPy/kern/_src/stationary_cython.c','GPy/kern/_src/stationary_utils.c'],
|
|
|
|
|
include_dirs=[np.get_include()],
|
|
|
|
|
extra_compile_args=compile_flags,
|
2015-04-27 16:00:42 +01:00
|
|
|
extra_link_args = ['-lgomp']),
|
2015-04-27 19:47:19 +01:00
|
|
|
Extension(name='GPy.util.choleskies_cython',
|
|
|
|
|
sources=['GPy/util/choleskies_cython.c'],
|
|
|
|
|
include_dirs=[np.get_include()],
|
|
|
|
|
extra_compile_args=compile_flags),
|
2015-04-28 14:57:00 +01:00
|
|
|
Extension(name='GPy.util.linalg_cython',
|
|
|
|
|
sources=['GPy/util/linalg_cython.c'],
|
|
|
|
|
include_dirs=[np.get_include()],
|
|
|
|
|
extra_compile_args=compile_flags),
|
2015-04-27 16:00:42 +01:00
|
|
|
Extension(name='GPy.kern._src.coregionalize_cython',
|
2015-04-27 19:47:19 +01:00
|
|
|
sources=['GPy/kern/_src/coregionalize_cython.c'],
|
2015-04-27 16:00:42 +01:00
|
|
|
include_dirs=[np.get_include()],
|
|
|
|
|
extra_compile_args=compile_flags)]
|
2015-04-27 14:21:46 +01:00
|
|
|
|
2012-11-29 16:24:48 +00:00
|
|
|
setup(name = 'GPy',
|
|
|
|
|
version = version,
|
2013-03-11 12:33:03 +00:00
|
|
|
author = read('AUTHORS.txt'),
|
2012-11-29 16:24:48 +00:00
|
|
|
author_email = "james.hensman@gmail.com",
|
|
|
|
|
description = ("The Gaussian Process Toolbox"),
|
|
|
|
|
license = "BSD 3-clause",
|
|
|
|
|
keywords = "machine-learning gaussian-processes kernels",
|
2013-03-11 12:33:03 +00:00
|
|
|
url = "http://sheffieldml.github.com/GPy/",
|
2015-04-27 14:21:46 +01:00
|
|
|
ext_modules = ext_mods,
|
2014-11-05 16:31:22 +00:00
|
|
|
packages = ["GPy.models",
|
|
|
|
|
"GPy.inference.optimization",
|
2014-11-11 09:56:15 +00:00
|
|
|
"GPy.inference.mcmc",
|
2014-11-05 16:31:22 +00:00
|
|
|
"GPy.inference",
|
|
|
|
|
"GPy.inference.latent_function_inference",
|
|
|
|
|
"GPy.likelihoods", "GPy.mappings",
|
|
|
|
|
"GPy.examples", "GPy.core.parameterization",
|
|
|
|
|
"GPy.core", "GPy.testing",
|
|
|
|
|
"GPy", "GPy.util", "GPy.kern",
|
|
|
|
|
"GPy.kern._src.psi_comp", "GPy.kern._src",
|
|
|
|
|
"GPy.plotting.matplot_dep.latent_space_visualizations.controllers",
|
|
|
|
|
"GPy.plotting.matplot_dep.latent_space_visualizations",
|
|
|
|
|
"GPy.plotting.matplot_dep", "GPy.plotting"],
|
2012-11-29 16:24:48 +00:00
|
|
|
package_dir={'GPy': 'GPy'},
|
2014-11-11 09:56:15 +00:00
|
|
|
package_data = {'GPy': ['defaults.cfg', 'installation.cfg',
|
|
|
|
|
'util/data_resources.json',
|
|
|
|
|
'util/football_teams.json']},
|
|
|
|
|
include_package_data = True,
|
2012-11-29 16:24:48 +00:00
|
|
|
py_modules = ['GPy.__init__'],
|
2014-11-11 09:56:15 +00:00
|
|
|
test_suite = 'GPy.testing',
|
2012-12-06 10:16:19 -08:00
|
|
|
long_description=read('README.md'),
|
2014-11-11 09:56:15 +00:00
|
|
|
install_requires=['numpy>=1.7', 'scipy>=0.12'],
|
|
|
|
|
extras_require = {'docs':['matplotlib >=1.3','Sphinx','IPython']},
|
|
|
|
|
classifiers=['License :: OSI Approved :: BSD License',
|
|
|
|
|
'Natural Language :: English',
|
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
|
'Topic :: Scientific/Engineering :: Artificial Intelligence']
|
2012-11-29 16:24:48 +00:00
|
|
|
)
|