python3-pandas: work around build failure on i686

This commit is contained in:
Andrew J. Hesford 2022-10-06 12:03:03 -04:00
parent a81cbaa11d
commit fb946c9973

View file

@ -16,7 +16,21 @@ changelog="https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html"
distfiles="https://github.com/pandas-dev/pandas/archive/v${version}.tar.gz" distfiles="https://github.com/pandas-dev/pandas/archive/v${version}.tar.gz"
checksum=ab23595e2105e2595b14c37f5e88a24d065eb60432e9f45c78f8613ba956eacd checksum=ab23595e2105e2595b14c37f5e88a24d065eb60432e9f45c78f8613ba956eacd
# Try to avoid an intermittent i686 build failure
# https://build.voidlinux.org/builders/i686_builder/builds/39813/steps/shell_3/logs/stdio
case "$XBPS_TARGET_MACHINE" in
i686*) disable_parallel_build=yes ;;
esac
pre_build() { pre_build() {
# Try to avoid the aforementioned intermittent i686 build failure
case "$XBPS_TARGET_MACHINE" in
i686*)
CFLAGS="${CFLAGS// -g/ -g1}"
CXXFLAGS="${CXXFLAGS// -g/ -g1}"
;;
esac
# setup.py allows a -j argument to parallelize builds # setup.py allows a -j argument to parallelize builds
make_build_args+=" ${makejobs}" make_build_args+=" ${makejobs}"
} }