Return absolute path to directory containing Arrow C++ include headers. Similar to numpy.get_include
()
| 311 | |
| 312 | |
| 313 | def get_include(): |
| 314 | """ |
| 315 | Return absolute path to directory containing Arrow C++ include |
| 316 | headers. Similar to numpy.get_include |
| 317 | """ |
| 318 | # Use pyarrow.lib location instead of just __file__. That works |
| 319 | # for both editable and non-editable builds as it points |
| 320 | # to the actual location of the compiled C++ extension. |
| 321 | from pyarrow import lib as _lib |
| 322 | return _os.path.join(_os.path.dirname(_lib.__file__), 'include') |
| 323 | |
| 324 | |
| 325 | def _get_pkg_config_executable(): |