File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
- ### 1.48 (2017-06-23 )
3
+ ### 1.48 (2017-06-26 )
4
4
* BugFix: Rollback #363 , as it breaks multi-index dataframe
5
+ * Bugfix: #372 OSX build improvements
5
6
6
7
### 1.47 (2017-06-19)
7
8
* Feature: Re-introduce #363 ` concat ` flag, essentially undo-ing 1.45
Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ Arctic currently works with:
115
115
* MongoDB >= 2.4.x
116
116
117
117
118
+ Operating Systems:
119
+ * Linux
120
+ * macOS
121
+
118
122
## Acknowledgements
119
123
120
124
Arctic has been under active development at [ Man AHL] ( http://www.ahl.com/ ) since 2012.
Original file line number Diff line number Diff line change 23
23
from setuptools .command .test import test as TestCommand
24
24
from Cython .Build import cythonize
25
25
import sys , os , platform
26
+
27
+
26
28
if platform .system ().lower () == 'darwin' :
27
- # gcc-4.2 on Mac OS X does not work with OpenMP
28
- os .environ ["CC" ] = "g++-6" ; os .environ ["CXX" ] = "g++-6"
29
+ # clang on macOS does not work with OpenMP
30
+ ccs = ["/usr/local/bin/g++-5" , "/usr/local/bin/g++-6" , "/usr/local/bin/g++-7" ]
31
+ cc = None
32
+ for compiler in ccs :
33
+ if os .path .isfile (compiler ):
34
+ cc = compiler
35
+ if cc is None :
36
+ raise ValueError ("You must install gcc/g++. You can install with homebrew: brew install gcc --without-multilib" )
37
+ os .environ ["CC" ] = cc .replace ("g++" , "gcc" )
38
+ os .environ ["CXX" ] = cc
29
39
# not all OSX/clang compiler flags supported by GCC. For some reason
30
40
# these sometimes are generated and used. Cython will still add more flags.
31
41
os .environ ["CFLAGS" ] = "-fno-common -fno-strict-aliasing -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -g -fwrapv -Os"
You can’t perform that action at this time.
0 commit comments