Skip to content

Commit 8f9a78a

Browse files
authored
Merge branch 'master' into revert-concat
2 parents 892616e + f4d4f96 commit 8f9a78a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## Changelog
22

3-
### 1.48 (2017-06-23)
3+
### 1.48 (2017-06-26)
44
* BugFix: Rollback #363, as it breaks multi-index dataframe
5+
* Bugfix: #372 OSX build improvements
56

67
### 1.47 (2017-06-19)
78
* Feature: Re-introduce #363 `concat` flag, essentially undo-ing 1.45

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ Arctic currently works with:
115115
* MongoDB >= 2.4.x
116116

117117

118+
Operating Systems:
119+
* Linux
120+
* macOS
121+
118122
## Acknowledgements
119123

120124
Arctic has been under active development at [Man AHL](http://www.ahl.com/) since 2012.

setup.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,19 @@
2323
from setuptools.command.test import test as TestCommand
2424
from Cython.Build import cythonize
2525
import sys, os, platform
26+
27+
2628
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
2939
# not all OSX/clang compiler flags supported by GCC. For some reason
3040
# these sometimes are generated and used. Cython will still add more flags.
3141
os.environ["CFLAGS"] = "-fno-common -fno-strict-aliasing -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -g -fwrapv -Os"

0 commit comments

Comments
 (0)