Left Screen created ARROW-18129:
-----------------------------------

             Summary: get_include() gives wrong directory
                 Key: ARROW-18129
                 URL: https://issues.apache.org/jira/browse/ARROW-18129
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 9.0.0
         Environment: conda
            Reporter: Left Screen


{{get_include}} seems to do:

 
{code:java}
def get_include():
    """
    Return absolute path to directory containing Arrow C++ include
    headers. Similar to numpy.get_include
    """
    return _os.path.join(_os.path.dirname(__file__), 'include') {code}
This returns something like:
{code:java}
/path/to/myconda/envs/envname/lib/python3.8/site-packages/pyarrow/include{code}
which does not exist in a conda environment. The path where the headers 
actually get installed is to:

 
{code:java}
$ echo $CONDA_PREFIX
/path/to/myconda/envs/envname

$ ls $CONDA_PREFIX/include/arrow | head
adapters
api.h
array
array.h
buffer_builder.h
buffer.h
builder.h
c
chunked_array.h
chunk_resolver.h
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to