Package: pycuda / 2016.1.2+git20161024-1

python-versions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Change option providing name of Python Boost library
 Package needs libboost-python and name of linked library depends on Python
 version. To build for all supported Python version we need to get used
 Python version and include it into name of linked library.
Forwarded: not-needed
Author: Tomasz Rybak <tomasz.rybak@post.pl>
Last-Update: 2016-10-27
Index: pycuda-2016.1.2+git20161024/setup.py
===================================================================
--- pycuda-2016.1.2+git20161024.orig/setup.py
+++ pycuda-2016.1.2+git20161024/setup.py
@@ -116,6 +116,7 @@ def main():
     EXTRA_DEFINES["PYGPU_PYCUDA"] = "1"
 
     LIBRARY_DIRS = conf["BOOST_LIB_DIR"] + conf["CUDADRV_LIB_DIR"]
+    conf["BOOST_PYTHON_LIBNAME"][0] += sys.version[0]+sys.version[2]
     LIBRARIES = (conf["BOOST_PYTHON_LIBNAME"] + conf["BOOST_THREAD_LIBNAME"]
             + conf["CUDADRV_LIBNAME"])