Skip to content

Commit 8ce24bd

Browse files
committed
fixup! ci: move wheelbuilding config out of ci
1 parent 0f17413 commit 8ce24bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ci/tools/env-vars

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ if [[ ${#} -ne 1 ]]; then
1515
exit 1
1616
fi
1717

18-
PYTHON_VERSION_FORMATTED=$(echo "${PY_VER}" | tr -d '.')
18+
PYTHON_VERSION_FORMATTED="$(tr -d . <<< "${PY_VER}")"
19+
20+
# platform is handled by the default value of platform (`auto`) in cibuildwheel
21+
# here we only need to specify the python version we want
22+
CIBW_BUILD="cp${PYTHON_VERSION_FORMATTED}-*"
23+
1924
if [[ "${HOST_PLATFORM}" == linux* ]]; then
20-
CIBW_BUILD="cp${PYTHON_VERSION_FORMATTED}-manylinux*"
2125
REPO_DIR=$(pwd)
2226
TOOLS_PATH="${REPO_DIR}/ci/tools"
2327
elif [[ "${HOST_PLATFORM}" == win* ]]; then
24-
CIBW_BUILD="cp${PYTHON_VERSION_FORMATTED}-win_amd64"
2528
PWD=$(pwd)
2629
REPO_DIR=$(cygpath -w ${PWD})
2730
TOOLS_PATH=$(cygpath -w ${PWD}/ci/tools)

0 commit comments

Comments
 (0)