File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments