[
https://issues.apache.org/jira/browse/ARROW-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527680#comment-16527680
]
Antoine Pitrou commented on ARROW-2734:
---------------------------------------
Thanks for reporting the issue, Jonathan. Do you want to try submitting a PR
for this?
> Cython api example doesn't work by default on macOS
> ---------------------------------------------------
>
> Key: ARROW-2734
> URL: https://issues.apache.org/jira/browse/ARROW-2734
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Documentation, Python
> Affects Versions: 0.9.0
> Environment: macOS 10.13
> Reporter: Jonathan Chambers
> Priority: Minor
> Fix For: 0.10.0
>
>
> The setup.py + example.pyx given in the docs:
> [https://arrow.apache.org/docs/python/extending.html#example]
> 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:
> {code:java}
> os.environ['CFLAGS'] = '-std=c++11 -stdlib=libc++'
> {code}
> to setup.py
>
> The second issue is that the line
> {code:java}
> ext.library_dirs.append(pa.get_library_dirs())
> {code}
> should be
> {code:java}
> ext.library_dirs.extend(pa.get_library_dirs())
> {code}
>
> 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
(v7.6.3#76005)