kszucs commented on a change in pull request #7471:
URL: https://github.com/apache/arrow/pull/7471#discussion_r442025009



##########
File path: python/manylinux1/scripts/build_boost.sh
##########
@@ -20,10 +20,16 @@ BOOST_VERSION=1.73.0
 BOOST_VERSION_UNDERSCORE=${BOOST_VERSION//\./_}
 NCORES=$(($(grep -c ^processor /proc/cpuinfo) + 1))
 
-curl -sL 
https://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
 -o /boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
-tar xf boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
+BASE_NAME=boost_${BOOST_VERSION_UNDERSCORE}
+ARCHIVE_NAME=boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
+
+# Bintray is much faster but can fail because of limitations
+curl -sL 
https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
 -o /${ARCHIVE_NAME} \
+    || curl -sL 
https://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_VERSION_UNDERSCORE}.tar.bz2
 -o /${ARCHIVE_NAME}

Review comment:
       Nice!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to