Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-35029: [CI][C#] Install python on ubuntu-csharp image to fix nuget CI build #35030

Merged
merged 2 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ci/docker/ubuntu-22.04-csharp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ ARG dotnet=7.0
ARG platform=jammy
FROM mcr.microsoft.com/dotnet/sdk:${dotnet}-${platform}-${arch}

RUN apt-get update -y -q && \
apt-get install -y --no-install-recommends python3 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN dotnet tool install --tool-path /usr/local/bin sourcelink
2 changes: 1 addition & 1 deletion ci/scripts/csharp_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [ -z "${PYTHON}" ]; then
export PYTHON=python3
else
export PYTHON=python
fi
fi
fi
${PYTHON} -m pip install pyarrow find-libpython
export PYTHONNET_PYDLL=$(${PYTHON} -m find_libpython)
Expand Down