Skip to content

Commit b384847

Browse files
committed
fix
1 parent 358a3fb commit b384847

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tools/test_windows_wheels_in_docker.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ set -x
55

66
PYTHON_VERSION=$1
77

8-
WHEEL_PATH=$(ls wheelhouse/*.whl)
9-
WHEEL_NAME=$(basename "$WHEEL_PATH")
8+
WHEEL_PATH=$(ls dist/*.whl)
109

1110
# Dot the Python version for identifying the base Docker image.
12-
PYTHON_DOCKER_IMAGE_PART=$(echo "${PYTHON_VERSION:0:1}.${PYTHON_VERSION:1:2}")
11+
PYTHON_DOCKER_IMAGE_PART="${PYTHON_VERSION:0:1}.${PYTHON_VERSION:1:2}"
1312

1413
DOCKER_IMAGE="winamd64/python:${PYTHON_DOCKER_IMAGE_PART}-windowsservercore"
1514
MNT_FOLDER="C:/mnt"
@@ -20,6 +19,6 @@ function exec_inside_container() {
2019
}
2120

2221
exec_inside_container "python -m venv C:/venv"
23-
exec_inside_container "C:/venv/Scripts/python -m pip install $MNT_FOLDER/wheelhouse/$WHEEL_NAME"
22+
exec_inside_container "C:/venv/Scripts/python -m pip install $MNT_FOLDER/$WHEEL_PATH"
2423
exec_inside_container "C:/venv/Scripts/python -c 'import sklearn; sklearn.show_versions()'"
2524
exec_inside_container "C:/venv/Scripts/python -m sklearn.utils.tests.test_estimator_checks"

0 commit comments

Comments
 (0)