zbyszek / rpms / pyhunspell

Forked from rpms/pyhunspell 6 years ago
Clone
101174d
From 9eaae7726ac95ae8b334e936064b51c8d0d42f46 Mon Sep 17 00:00:00 2001
101174d
From: =?UTF-8?q?Beno=C3=AEt=20Latinier?= <benoit@latinier.fr>
101174d
Date: Thu, 1 Feb 2018 21:36:59 +0100
101174d
Subject: [PATCH 06/12] split linux/macos params
101174d
101174d
---
101174d
 setup.py | 7 ++++++-
101174d
 1 file changed, 6 insertions(+), 1 deletion(-)
101174d
101174d
diff --git a/setup.py b/setup.py
101174d
index 106df45..0dcbf01 100755
101174d
--- a/setup.py
101174d
+++ b/setup.py
101174d
@@ -29,10 +29,15 @@ if platform.system() == "Windows":
101174d
     main_module_kwargs['include_dirs'] = ['V:/hunspell-1.3.3/src/hunspell']
101174d
     main_module_kwargs['library_dirs'] = ['V:/hunspell-1.3.3/src/win_api/x64/Release/libhunspell']
101174d
     main_module_kwargs['compile_args'] = ['/MT']
101174d
+elif platform.system() == "Darwin":
101174d
+    main_module_kwargs['macros'] = [('_LINUX', None)]
101174d
+    main_module_kwargs['libraries'] = ['hunspell']
101174d
+    main_module_kwargs['include_dirs'] = '/usr/local/Cellar/hunspell/1.6.2/include/hunspell',
101174d
+    main_module_kwargs['compile_args'] = ['-Wall']
101174d
 else:
101174d
     main_module_kwargs['macros'] = [('_LINUX', None)]
101174d
     main_module_kwargs['libraries'] = ['hunspell']
101174d
-    main_module_kwargs['include_dirs'] = ['/usr/include/hunspell', '/usr/local/Cellar/hunspell/1.6.2/include/hunspell'],
101174d
+    main_module_kwargs['include_dirs'] = '/usr/include/hunspell',
101174d
     main_module_kwargs['compile_args'] = ['-Wall']
101174d
 
101174d
 main = Extension('hunspell', **main_module_kwargs)
101174d
-- 
101174d
2.14.3
101174d