-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·35 lines (27 loc) · 881 Bytes
/
setup.py
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
#!/usr/bin/python -B
from config import *
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
extensions = [ Extension("cycuda.core", ['src/core.pyx'],
libraries = [cuda_library],
library_dirs = [cuda_library_dir],
include_dirs = [cuda_include_dir, 'src'])]
"""
Extension("cycuda.garray", ['src/garray.pyx'],
libraries = [cuda_library],
library_dirs = [cuda_library_dir],
include_dirs = [cuda_include_dir, 'src'])
"""
cycuda_srcs = ['cycuda']
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = extensions,
packages = ['cycuda'],
name = 'CyCuda',
version = '0.0.1',
description = "Cython Bindings for Cuda",
author = "J-Pascal Mercier",
author_email = "[email protected]",
license = "MIT"
)