File: 0001-Disable-cython-extension.patch

package info (click to toggle)
compyle 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 972 kB
  • sloc: python: 12,853; makefile: 21
file content (45 lines) | stat: -rw-r--r-- 1,481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 22 Sep 2019 11:38:46 +0200
Subject: Disable cython extension

Forwarded: not-needed
---
 compyle/cuda.py | 2 +-
 setup.py        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/compyle/cuda.py b/compyle/cuda.py
index f888de6..f2d88fb 100644
--- a/compyle/cuda.py
+++ b/compyle/cuda.py
@@ -11,7 +11,7 @@ import pycuda._mymako as mako
 from pycuda.tools import (dtype_to_ctype, bitlog2,
                           context_dependent_memoize, ScalarArg, VectorArg)
 import pycuda.gpuarray as gpuarray
-from compyle.thrust.sort import argsort
+# from compyle.thrust.sort import argsort
 import pycuda.driver as drv
 from pycuda.compiler import SourceModule as _SourceModule
 from pytools import memoize
diff --git a/setup.py b/setup.py
index bf53466..e2e5c53 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ tests_require = ['pytest']
 if sys.version_info[0] < 3:
     tests_require += ['mock>=1.0']
 docs_require = ['sphinx']
-cuda_require = ['pycuda', 'cupy']
+cuda_require = ['pycuda']  # , 'cupy']
 opencl_require = ['pyopencl']
 
 classes = '''
@@ -66,7 +66,7 @@ setup(
     url='https://github.com/pypr/compyle',
     classifiers=classifiers,
     packages=find_packages(),
-    ext_modules=cythonize(ext_modules, language="c++"),
+    # ext_modules=cythonize(ext_modules, language="c++"),
     install_requires=install_requires,
     extras_require={
         "docs": docs_require,