Debian Codegraph @

ci/linux-deps

raw
1 #!/bin/bash
2
3 # Configure the libraries needed to build wheel packages on linux.
4 # This script is designed to be used by cibuildwheel as CIBW_BEFORE_ALL_LINUX
5
6 set -euo pipefail
7
8 # dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9
10 source /etc/os-release
11
12 echo "manylinux image woking on $ID"
13
14 # Install cyvcf2 development files.
15 case "$ID" in
16 almalinux)
17 dnf install -y bzip2-devel xz-devel libcurl-devel openssl-devel openblas-devel epel-release
18
19 # packages at epel
20 dnf install -y libdeflate-devel
21 ;;
22
23 alpine)
24 apk add --no-cache xz-dev curl-dev libdeflate-dev
25 ;;
26
27 centos)
28 yum install -y bzip2-devel xz-devel libcurl-devel openssl-devel
29
30 LIBDEFLATE_VERSION=1.20
31 curl -L -o libdeflate-v"$LIBDEFLATE_VERSION".tar.gz https://github.com/ebiggers/libdeflate/archive/refs/tags/v"$LIBDEFLATE_VERSION".tar.gz
32 tar xzf libdeflate-v"$LIBDEFLATE_VERSION".tar.gz
33 cd libdeflate-"$LIBDEFLATE_VERSION"
34 cmake -B build && cmake --build build
35 cd ./build/ && make install
36 cd ../..
37 ;;
38
39 *)
40 echo "$0: unexpected Linux distribution: '$ID'" >&2
41 exit 1
42 ;;
43 esac