You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/06/24 18:50:00 UTC
[jira] [Updated] (ARROW-2734) Cython api example doesn't work by
default on macOS
[ https://issues.apache.org/jira/browse/ARROW-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe L. Korn updated ARROW-2734:
-------------------------------
Component/s: Documentation
> 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)