8000 CI Dynamically select unpack directory (#18957) · scikit-learn/scikit-learn@671069c · GitHub
[go: up one dir, main page]

Skip to content

Commit 671069c

Browse files
authored
CI Dynamically select unpack directory (#18957)
1 parent 255718b commit 671069c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ on:
1717
# Manual run
1818
workflow_dispatch:
1919

20-
env:
21-
SCIKIT_LEARN_VERSION: 0.24.dev0
22-
2320
jobs:
2421
# Check whether to build the wheels and the source tarball
2522
check_build_trigger:
@@ -84,8 +81,7 @@ jobs:
8481
env:
8582
CONFTEST_PATH: ${{ github.workspace }}/conftest.py
8683
CONFTEST_NAME: conftest.py
87-
CIBW_ENVIRONMENT: WHEEL_DIRNAME=scikit_learn-$SCIKIT_LEARN_VERSION
88-
OMP_NUM_THREADS=2
84+
CIBW_ENVIRONMENT: OMP_NUM_THREADS=2
8985
OPENBLAS_NUM_THREADS=2
9086
SKLEARN_SKIP_NETWORK_TESTS=1
9187
SKLEARN_BUILD_PARALLEL=3

build_tools/github/repair_windows_wheels.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ BITNESS=$3
1010
# By default, the Windows wheels are not repaired.
1111
# In this case, we need to vendor VCRUNTIME140.dll
1212
wheel unpack "$WHEEL"
13+
WHEEL_DIRNAME=$(ls -d scikit_learn-*)
1314
python build_tools/github/vendor.py "$WHEEL_DIRNAME" "$BITNESS"
1415
wheel pack "$WHEEL_DIRNAME" -d "$DEST_DIR"
1516
rm -rf "$WHEEL_DIRNAME"

0 commit comments

Comments
 (0)
0