set -x set -eu set -o pipefail export PATH=/usr/local/c"$which_python"/bin:"$PATH" base_dir="/usr/local/c$which_python" include_dir="$base_dir/include" if ! [ -d "$base_dir" ] then echo "$base_dir does not exist" 1>&2 exit 1 fi if ! [ -d "$include_dir" ] then echo "$include_dir does not exist" 1>&2 exit 1 fi # export CFLAGS="-I$include_dir -I$include_dir/cairo" # export CFLAGS="-I$include_dir" export LDFLAGS="-L$base_dir/lib -Wl,-rpath -Wl,$base_dir/lib -Wl,-rpath -Wl,$base_dir/lib/x86_64-linux-gnu" # export PYTHON=/usr/bin/python #./configure \ # --prefix=/usr/local/c"$which_python" \ # && make # configure the build meson _build --prefix /usr/local/c"$which_python" -Dc_link_args="$LDFLAGS" -Dpkg_config_path="$PKG_CONFIG_PATH" # build ninja -C _build