Skip to content

Commit f704c97

Browse files
committed
Install libffi-devel to build i868 wheels
1 parent 287ee0b commit f704c97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/build-libsrtp.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ def run(cmd):
2828
"-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
2929
"-DENABLE_OPENSSL=ON",
3030
]
31+
if platform.system() == "Linux" and platform.machine() == "i686":
32+
# There are no binary wheels for cffi on i686 anymore.
33+
try:
34+
run(["yum", "-y", "install", "libffi-devel"])
35+
except Exception:
36+
# Alpine Linux doesn't use yum.
37+
pass
3138
if platform.system() == "Darwin" and "ARCHFLAGS" in os.environ:
3239
archs = [x for x in os.environ["ARCHFLAGS"].split() if x != "-arch"]
3340
cmake_args.append("-DCMAKE_OSX_ARCHITECTURES=" + ";".join(archs))

0 commit comments

Comments
 (0)