Skip to content

Commit

Permalink
python-3.7.6: Add CUDA profile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
david authored and donald committed Mar 29, 2020
1 parent 54b5ee1 commit 7ccba0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python-3.7.6-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -23,6 +25,7 @@ exec </dev/null

mkdir -p $PREFIX
cat >$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
Expand Down

0 comments on commit 7ccba0b

Please sign in to comment.