Blob Blame History Raw
From 9eaae7726ac95ae8b334e936064b51c8d0d42f46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Latinier?= <benoit@latinier.fr>
Date: Thu, 1 Feb 2018 21:36:59 +0100
Subject: [PATCH 06/12] split linux/macos params

---
 setup.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 106df45..0dcbf01 100755
--- a/setup.py
+++ b/setup.py
@@ -29,10 +29,15 @@ if platform.system() == "Windows":
     main_module_kwargs['include_dirs'] = ['V:/hunspell-1.3.3/src/hunspell']
     main_module_kwargs['library_dirs'] = ['V:/hunspell-1.3.3/src/win_api/x64/Release/libhunspell']
     main_module_kwargs['compile_args'] = ['/MT']
+elif platform.system() == "Darwin":
+    main_module_kwargs['macros'] = [('_LINUX', None)]
+    main_module_kwargs['libraries'] = ['hunspell']
+    main_module_kwargs['include_dirs'] = '/usr/local/Cellar/hunspell/1.6.2/include/hunspell',
+    main_module_kwargs['compile_args'] = ['-Wall']
 else:
     main_module_kwargs['macros'] = [('_LINUX', None)]
     main_module_kwargs['libraries'] = ['hunspell']
-    main_module_kwargs['include_dirs'] = ['/usr/include/hunspell', '/usr/local/Cellar/hunspell/1.6.2/include/hunspell'],
+    main_module_kwargs['include_dirs'] = '/usr/include/hunspell',
     main_module_kwargs['compile_args'] = ['-Wall']
 
 main = Extension('hunspell', **main_module_kwargs)
-- 
2.14.3