From 34a1b8cf8e3ffdb0bc42fa810091dbfad77bb30e Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Tue, 4 Aug 2015 18:12:49 +0100 Subject: [PATCH] The bug fix for the cblas.h problem in Mac os x --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8025cd5d..5e298e3f 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import os +import sys from setuptools import setup, Extension import numpy as np @@ -21,7 +22,7 @@ ext_mods = [Extension(name='GPy.kern._src.stationary_cython', extra_link_args = ['-lgomp']), Extension(name='GPy.util.choleskies_cython', sources=['GPy/util/choleskies_cython.c', 'GPy/util/cholesky_backprop.c'], - include_dirs=[np.get_include()], + include_dirs=[np.get_include()]+(['/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers'] if sys.platform=='darwin' else []), extra_link_args = ['-lgomp', '-lblas'], extra_compile_args=compile_flags+['-std=c99']), Extension(name='GPy.util.linalg_cython',