diff --git a/cibw_before_all.sh b/cibw_before_all.sh index c186303..ad62290 100644 --- a/cibw_before_all.sh +++ b/cibw_before_all.sh @@ -19,6 +19,11 @@ if command -v apt; then apt update && apt install --assume-yes libclang-7-dev clang-7 llvm-7 elif command -v apk; then apk update && apk add clang-dev +elif command -v yum; then + yum -y install llvm-toolset-7.0 llvm-toolset-7.0-llvm-devel + # (CentOS 7) Uncomment following lines to see required paths in build log: + # yum -y install centos-release-scl + # source scl_source enable llvm-toolset-7.0 || true fi pushd rizin diff --git a/pyproject.toml b/pyproject.toml index 851fa93..f942499 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,10 +11,13 @@ setup = ['-Dwheel=true'] [tool.cibuildwheel] build-verbosity = 3 before-all = "bash {project}/cibw_before_all.sh" -manylinux-x86_64-image = "manylinux_2_24" -manylinux-i686-image = "manylinux_2_24" +manylinux-x86_64-image = "manylinux2014" skip = "pp*" +[tool.cibuildwheel.linux] +environment = { PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin:/opt/rh/llvm-toolset-7.0/root/usr/sbin:$PATH", LD_LIBRARY_PATH="/opt/rh/llvm-toolset-7.0/root/usr/lib64:$LD_LIBRARY_PATH" } +archs = ["x86_64"] + [tool.cibuildwheel.windows] environment = { CMAKE_PREFIX_PATH="C:\\rizin" } archs = ["AMD64"]