Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.9.0
-
macOS 10.13
Description
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:
os.environ['CFLAGS'] = '-std=c++11 -stdlib=libc++'
to setup.py
The second issue is that the line
ext.library_dirs.append(pa.get_library_dirs())
should be
ext.library_dirs.extend(pa.get_library_dirs())
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.
Attachments
Issue Links
- links to