Skip to content

Commit 1515d42

Browse files
committed
Try to only build the right wheel for a step
1 parent 240920a commit 1515d42

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

azure-wheels-steps.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,22 @@ steps:
106106
export CIBW_ARCHS_MACOS="x86_64 arm64"
107107
export CIBW_TEST_SKIP="*-macosx_arm64"
108108
export CIBW_SKIP="pp* *-musllinux* *i686* *-win32 *-win_arm64 cp36-* cp37-* cp38-*"
109-
export CIBW_BUILD="cp39-* cp310-* cp311-* cp312-*"
109+
if [ "$(package_name)" == "spacy" ]; then
110+
export CIBW_BEFORE_BUILD="pip install -r requirements.txt && python setup.py clean"
111+
fi
112+
113+
if [ "$(python_version)" == "3.9" ]; then
114+
export CIBW_BUILD="cp39-*"
115+
fi
116+
if [ "$(python_version)" == "3.10" ]; then
117+
export CIBW_BUILD="cp310-*"
118+
fi
119+
if [ "$(python_version)" == "3.11" ]; then
120+
export CIBW_BUILD="cp311-*"
121+
fi
122+
if [ "$(python_version)" == "3.12" ]; then
123+
export CIBW_BUILD="cp312-*"
124+
fi
110125
# for spacy: clean cython-generated files between builds to handle
111126
# profiling settings, since the builds aren't isolated; a cleaner/nicer
112127
# version would install the build requirements from pyproject.toml

0 commit comments

Comments
 (0)