Skip to content

Commit

Permalink
Use 'cross-pip wheel' for test-crossenv
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 14, 2023
1 parent 97a9db1 commit 723e488
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,19 @@ jobs:
python3.9 -m pip install crossenv
python3.9 -m crossenv "/opt/python/cp39-cp39/bin/python3" --cc $TARGET_CC --cxx $TARGET_CXX --sysroot $TARGET_SYSROOT --env LIBRARY_PATH= --manylinux manylinux1 venv
. venv/bin/activate
build-pip install cffi wheel "setuptools>=62.4"
build-pip install -U pip>=23.2.1 setuptools>=68.0.0 wheel>=0.41.1
cross-pip install -U pip>=23.2.1 setuptools>=68.0.0 wheel>=0.41.1
build-pip install cffi
cross-expose cffi
pip install wheel build -e ../../
pip install cffi
cross-pip install -e ../../
export DIST_EXTRA_CONFIG=/tmp/build-opts.cfg
echo -e "[bdist_wheel]\npy_limited_api=cp37" > $DIST_EXTRA_CONFIG
python -m build --no-isolation
cross-pip wheel --no-build-isolation --wheel-dir dist .
ls -la dist/
unzip -l dist/*.whl # debug all files inside wheel file
' > build-wheels.sh
docker run --rm -v "$PWD":/io -w /io messense/manylinux2014-cross:${{ matrix.platform.arch }} bash build-wheels.sh
Expand Down

0 comments on commit 723e488

Please sign in to comment.