Skip to content

Commit

Permalink
test: make Python dll available in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wjones127 committed Feb 25, 2023
1 parent e4f2528 commit 87e734f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions ci/scripts/csharp_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ set -ex

source_dir=${1}/csharp

# Python and PyArrow are required for C Data Interface tests.
if [ -z "${PYTHON}" ]; then
if [ ! which python3 > /dev/null 2>&1 ]; then
export PYTHON=python
else
export PYTHON=python3
fi
fi
${PYTHON} -m pip install pyarrow find-libpython
export PYTHONNET_PYDLL=$(${PYTHON} -m find_libpython)

pushd ${source_dir}
dotnet test
for pdb in artifacts/Apache.Arrow/*/*/Apache.Arrow.pdb; do
Expand Down
2 changes: 1 addition & 1 deletion csharp/src/Apache.Arrow/C/CArrowSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Apache.Arrow.C
/// This is used to export <see cref="ArrowType"/>, <see cref="Field"/>, or
/// <see cref="Schema"/> to other languages. It matches the layout of the
/// ArrowSchema struct described in https://github.com/apache/arrow/blob/main/cpp/src/arrow/c/abi.h.
/// </remarks
/// </remarks>
[StructLayout(LayoutKind.Sequential)]
unsafe public struct CArrowSchema
{
Expand Down

0 comments on commit 87e734f

Please sign in to comment.