initial cython commit

This commit is contained in:
James Hensman 2015-04-27 14:21:46 +01:00
parent be40318e0b
commit b36a845821
6 changed files with 5787 additions and 1 deletions

View file

@ -2,7 +2,8 @@
# -*- coding: utf-8 -*-
import os
from setuptools import setup
from setuptools import setup, Extension
import numpy as np
# Version number
version = '0.6.1'
@ -10,6 +11,14 @@ version = '0.6.1'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
compile_flags = ["-march=native", '-fopenmp', '-O3', ]
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,
extra_link_args = ['-lgomp'])]
setup(name = 'GPy',
version = version,
author = read('AUTHORS.txt'),
@ -18,6 +27,7 @@ setup(name = 'GPy',
license = "BSD 3-clause",
keywords = "machine-learning gaussian-processes kernels",
url = "http://sheffieldml.github.com/GPy/",
ext_modules = ext_mods,
packages = ["GPy.models",
"GPy.inference.optimization",
"GPy.inference.mcmc",