Skip to content

[Python] get_include() gives wrong directory in conda environment #33326

@asfimport

Description

@asfimport

get_include seems to do:

 

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') 

This returns something like:

/path/to/myconda/envs/envname/lib/python3.8/site-packages/pyarrow/include

which does not exist in a conda environment. The path where the headers actually get installed is to:

 

$ 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

Environment: conda
Reporter: Left Screen

Related issues:

Note: This issue was originally created as ARROW-18129. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions