Skip to content

Commit 2036ea5

Browse files
committed
more fix
1 parent 29005d4 commit 2036ea5

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

dev/release/verify-release-candidate.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,20 @@ test_source_distribution() {
135135
git clone https://github.com/apache/parquet-testing.git parquet-testing
136136

137137
python3 -m venv .venv
138-
source .venv/bin/activate
139-
python3 -m pip install -U pip
140-
python3 -m pip install -U maturin
141-
maturin develop
138+
if [ -x ".venv/bin/python" ]; then
139+
VENV_PYTHON=".venv/bin/python"
140+
elif [ -x ".venv/Scripts/python.exe" ]; then
141+
VENV_PYTHON=".venv/Scripts/python.exe"
142+
elif [ -x ".venv/Scripts/python" ]; then
143+
VENV_PYTHON=".venv/Scripts/python"
144+
else
145+
echo "Unable to find python executable in virtual environment"
146+
exit 1
147+
fi
148+
149+
"$VENV_PYTHON" -m pip install -U pip
150+
"$VENV_PYTHON" -m pip install -U maturin
151+
"$VENV_PYTHON" -m maturin develop
142152

143153
#TODO: we should really run tests here as well
144154
#python3 -m pytest

0 commit comments

Comments
 (0)