Skip to content

Commit 214f2cd

Browse files
committed
Substitute python limited API version for current interpriter.
1 parent c440c71 commit 214f2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travis_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function bdist_wheel_cmd {
1616
local abs_wheelhouse=$1
1717
# install all required packages in pyproject.toml, because bdist_wheel does not do it
1818
python${PYTHON_VERSION} -m pip install toml && python${PYTHON_VERSION} -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | python${PYTHON_VERSION} -m pip install -r /dev/stdin
19-
CI_BUILD=1 python${PYTHON_VERSION} setup.py bdist_wheel --py-limited-api=cp37 -v
19+
CI_BUILD=1 python${PYTHON_VERSION} setup.py bdist_wheel --py-limited-api="cp${PYTHON_VERSION//./}" -v
2020
cp dist/*.whl $abs_wheelhouse
2121
if [ -z "$IS_OSX" ]; then
2222
# this path can be changed in the latest manylinux image

0 commit comments

Comments
 (0)