[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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
                 Key: ARROW-2734
                 URL: https://issues.apache.org/jira/browse/ARROW-2734
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Python
    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++'
to setup.py


The second issue is that the line
should be  

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