Skip to content

BUG: test_get_include failing in conda builds on unix #15016

@h-vetinari

Description

@h-vetinari

Describe the bug, including details regarding any error messages, version, and platform.

#14832 switched on the test suite within the conda-builds, which itself synced with conda-forge/arrow-cpp-feedstock#875

In the process of doing so test_get_include was skipped,

# test is broken; header is in $PREFIX, not $SP_DIR
{% set tests_to_skip = tests_to_skip + " or (test_misc and test_get_include)" %} # [unix]

I believe that is broken now that the C/C++ lib is separate. In particular, the test is looking for include/arrow/api.h (rather than, say, include/arrow/pyarrow/api.h) in the (python-specific) site-packages directory, but the C/C++ headers are now in $PREFIX/include/arrow/.... Interestingly, this passes on windows, because the windows build just seems to copy the C/C++ headers to the %SP_DIR% as well (in addition to the ones correctly put into %LIBRARY_INC%). My outsider's impression is that the test should be adapted (and that windows shouldn't copy the non-python headers to %SP_DIR%).

To fix this, the line quoted above should be removed, and the conda tests still pass.

Component(s)

Continuous Integration, Python

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