[jira] [Created] (ARROW-2734) Cython api example doesn't work by default on macOS
Jonathan Chambers created ARROW-2734:
Summary: Cython api example doesn't work by default on macOS
Project: Apache Arrow
Issue Type: Improvement
Affects Versions: 0.9.0
Environment: macOS 10.13
Reporter: Jonathan Chambers
The setup.py + example.pyx given in the docs:
doesn't work on macOS.
The first issue is the error:
*example.cpp:603:10:* *fatal error:* *'unordered_map' file not found*
because (AFAIU) macOS clang doesn't include the required C++11 lib by default.
This can be solved by adding:
os.environ['CFLAGS'] = '-std=c++11 -stdlib=libc++'
The second issue is that the line
otherwise this causes a (completely uninformative) typerror during the build because library dirs ends up being a list of list instead of a list of string.
This message was sent by Atlassian JIRA