@@ -39,45 +39,15 @@ ${MAIN_PYTHON_BIN}/cmake \
3939 ..
4040make all install
4141
42- PYTHON_VERSIONS=" "
43- if [[ -z ${BUILD_PYTHON} ]]; then
44- # Collect all target Python versions.
45- for PYTHON_BIN in /opt/python/* /bin; do
46- # H/T: https://stackoverflow.com/a/229606/1068170
47- if [[ " ${PYTHON_BIN} " == * " 39" * ]]; then
48- PYTHON_VERSIONS=" ${PYTHON_VERSIONS} ${PYTHON_BIN} "
49- continue
50- elif [[ " ${PYTHON_BIN} " == * " 310" * ]]; then
51- PYTHON_VERSIONS=" ${PYTHON_VERSIONS} ${PYTHON_BIN} "
52- continue
53- elif [[ " ${PYTHON_BIN} " == * " 311" * ]]; then
54- PYTHON_VERSIONS=" ${PYTHON_VERSIONS} ${PYTHON_BIN} "
55- continue
56- elif [[ " ${PYTHON_BIN} " == * " 312" * ]]; then
57- PYTHON_VERSIONS=" ${PYTHON_VERSIONS} ${PYTHON_BIN} "
58- continue
59- else
60- echo " Ignoring unsupported version: ${PYTHON_BIN} "
61- echo " ====================================="
62- fi
63- done
64- else
65- STRIPPED_PYTHON=$( echo ${BUILD_PYTHON} | sed -e " s/\.//g" | sed -e " s/-dev$//" )
66- for PYTHON_BIN in /opt/python/* /bin; do
67- if [[ " ${PYTHON_BIN} " == * " ${STRIPPED_PYTHON} " * ]]; then
68- PYTHON_VERSIONS=" ${PYTHON_VERSIONS} ${PYTHON_BIN} "
69- fi
70- done
71- fi
7242
73- # Build the wheels.
43+ # Build the wheel.
44+ export CRC32C_PURE_PYTHON=0
45+ export CRC32C_LIMITED_API=1
7446cd ${REPO_ROOT}
75- for PYTHON_BIN in ${PYTHON_VERSIONS} ; do
76- ${PYTHON_BIN} /python -m pip install --upgrade pip
77- ${PYTHON_BIN} /python -m pip install \
78- --requirement ${REPO_ROOT} /scripts/dev-requirements.txt
79- ${PYTHON_BIN} /python -m pip wheel . --wheel-dir dist_wheels/
80- done
47+ ${MAIN_PYTHON_BIN} /python -m pip install --upgrade pip
48+ ${MAIN_PYTHON_BIN} /python -m pip install \
49+ --requirement ${REPO_ROOT} /scripts/dev-requirements.txt
50+ ${MAIN_PYTHON_BIN} /python -m pip wheel . --wheel-dir dist_wheels/
8151
8252# Bundle external shared libraries into the wheels
8353for whl in dist_wheels/google_crc32c* .whl; do
0 commit comments