Skip to content

Commit

Permalink
Remove git before testing sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed May 17, 2021
1 parent 4964100 commit dab0cdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion ci/scripts/python_sdist_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ export PYARROW_WITH_DATASET=${ARROW_DATASET:-OFF}
# unset ARROW_HOME
# apt purge -y pkg-config

# ARROW-12619
if [ command -v COMMAND &> /dev/null ]; then
echo "Git exists, remove it from PATH before executing this script."
exit 1
fi

if [ -n "${PYARROW_VERSION:-}" ]; then
sdist="${arrow_dir}/python/dist/pyarrow-${PYARROW_VERSION}.tar.gz"
else
sdist=$(ls "${arrow_dir}/python/dist/pyarrow-*.tar.gz" | sort -r | head -n1)
sdist=$(ls ${arrow_dir}/python/dist/pyarrow-*.tar.gz | sort -r | head -n1)
fi
${PYTHON:-python} -m pip install ${sdist}

Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ services:
volumes: *ubuntu-volumes
command: >
/bin/bash -c "
apt remove -y git &&
/arrow/ci/scripts/cpp_build.sh /arrow /build &&
/arrow/ci/scripts/python_sdist_test.sh /arrow"
Expand Down Expand Up @@ -814,9 +815,9 @@ services:
source: .
target: "C:/arrow"
command: arrow\\ci\\scripts\\python_wheel_windows_test.bat

java-bundled-jars:
# Docker image
# Docker image
image: ${REPO}:${ARCH}-java-bundled-jars-vcpkg-${VCPKG}
build:
args:
Expand All @@ -831,7 +832,7 @@ services:
volumes:
- .:/arrow:delegated
- ${DOCKER_VOLUME_PREFIX}python-wheel-manylinux2014-ccache:/ccache:delegated
command:
command:
[/arrow/ci/scripts/java_bundled_jars_manylinux_build.sh /arrow /build /arrow/dist]

############################## Integration #################################
Expand Down

0 comments on commit dab0cdd

Please sign in to comment.