[ 
https://issues.apache.org/jira/browse/ARROW-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659760#comment-17659760
 ] 

Rok Mihevc commented on ARROW-2734:
-----------------------------------

This issue has been migrated to [issue 
#19121|https://github.com/apache/arrow/issues/19121] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Python] 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
>            Assignee: Krisztian Szucs
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.11.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)

Reply via email to