From 7ccba0b57266886b535beb2c7f64c152360ed69a Mon Sep 17 00:00:00 2001 From: david Date: Fri, 27 Mar 2020 11:23:30 +0100 Subject: [PATCH] python-3.7.6: Add CUDA profile We are going to install pycuda into this package, which requires cuda at compile- and runtime, so add the cuda package to this packages environment. --- python-3.7.6-0.build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-3.7.6-0.build.sh b/python-3.7.6-0.build.sh index 9741975..188369e 100755 --- a/python-3.7.6-0.build.sh +++ b/python-3.7.6-0.build.sh @@ -5,6 +5,8 @@ VERSION=3.7.6 BUILD=0 PYTHONVER=${VERSION%.*} +CUDADIR=/pkg/cuda-10.2.89-1 + PREFIX=/pkg/$PKG-$VERSION-$BUILD if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi @@ -23,6 +25,7 @@ exec $PREFIX/profile <<-EOF + . $CUDADIR/profile PATH=$PREFIX/bin:\$PATH PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig\${PKG_CONFIG_PATH:+:\$PKG_CONFIG_PATH} export PKG_CONFIG_PATH