Skip to content

Commit cead9bf

Browse files
committed
ENH Do not always install libffi-devel
1 parent cafe3cf commit cead9bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- os: ubuntu-latest
5252
python: "310"
5353
platform: manylinux_x86_64
54+
install_libffi_devel: "1"
5455

5556
# macos builds
5657
- os: macos-latest
@@ -86,8 +87,10 @@ jobs:
8687
CIBW_BUILD_VERBOSITY: 3
8788
CIBW_BEFORE_BUILD: bash {project}/tools/wheels/cibw_before_build.sh {project}
8889
CIBW_BEFORE_TEST: pip install -r {project}/test_requirements.txt
89-
# Installs libffi so that cffi can be built from source if needed
90-
CIBW_BEFORE_TEST_LINUX: yum install -y libffi-devel && pip install -r {project}/test_requirements.txt
90+
# Installs libffi so that cffi can be built from source when needed
91+
CIBW_BEFORE_TEST_LINUX: >
92+
[[ "${{ matrix.install_libffi_devel }}" == "1" ]] && yum install -y libffi-devel;
93+
pip install -r {project}/test_requirements.txt
9194
CIBW_TEST_COMMAND: bash {project}/tools/wheels/cibw_test_command.sh {project}
9295

9396
- uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)