From 961b8f5d53bf9f953c4a43fceb68d3b801f36420 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 27 Mar 2020 11:46:43 +0100 Subject: [PATCH] python-3.7.6: Add boost for pycuda --- python-3.7.6-0.build.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/python-3.7.6-0.build.sh b/python-3.7.6-0.build.sh index bd3b599..aa6ed56 100755 --- a/python-3.7.6-0.build.sh +++ b/python-3.7.6-0.build.sh @@ -241,6 +241,46 @@ pip3 install --prefix=$PREFIX libxml2-python3 # required by several bee packages pip3 install --prefix=$PREFIX scour # https://github.molgen.mpg.de/mariux64/pkg-scripts/issues/98 pip3 install --prefix=$PREFIX multiqc +#boost for pycuda +( + . ${PREFIX}/profile + BOOST_VERSION="1.72.0 1_72_0" + BOOST_SRC=https://dl.bintray.com/boostorg/release/$( echo $BOOST_VERSION | cut -d" " -f1 )/source/boost_$( echo $BOOST_VERSION | cut -d" " -f2 ).tar.gz + PKGCFLAGS="-O2 -fPIC" + + cd $BUILDDIR + test -e boost_$( echo $BOOST_VERSION | cut -d" " -f2 ).tar.gz || wget $BOOST_SRC + test -d boost-$( echo $BOOST_VERSION | cut -d" " -f1 ) || mkdir boost-$( echo $BOOST_VERSION | cut -d" " -f1 ) && tar -xf boost_$( echo $BOOST_VERSION | cut -d" " -f2 ).tar.gz -C boost-$( echo $BOOST_VERSION | cut -d" " -f1 ) --strip-components=1 + + cd boost-$( echo $BOOST_VERSION | cut -d" " -f1 ) + sed -e "/using python/ s|;|: ${PREFIX}/include/python${PYTHONVER}m ;|" \ + -i bootstrap.sh + + ./bootstrap.sh \ + --with-toolset=gcc \ + --with-icu \ + --with-python=$PREFIX/bin/python3 \ + --with-libraries=python,thread || exit 1 + + ./b2 \ + $NUMJOBS \ + --layout=system \ + --build-dir=build-python3 \ + --prefix=$PREFIX \ + --libdir=$PREFIX/lib \ + --build-type=minimal \ + toolset=gcc \ + variant=release \ + debug-symbols=off \ + link=shared \ + threading=multi \ + runtime-link=shared \ + python=$PYTHONVER \ + cflags="$PKGCFLAGS" \ + cxxflags="$PKGCFLAGS" \ + install || exit 1 +) + # try to load all packages, maybe we can see installation errors python3 -c 'help("modules")' > /dev/null