blob: fc8d0d2d0eef32b7e54ad8c1901a4ea3562f4b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
""" setup.py
Handles the compilation of pyx source files
run as:
python setup.py build_ext --inplace
Copyright 2014, Mario Mulansky <mario.mulansky@gmx.net>
Distributed under the BSD License
"""
from distutils.core import setup
import numpy
try:
from Cython.Build import cythonize
setup(
ext_modules=cythonize("pyspike/*.pyx"),
include_dirs=[numpy.get_include()]
)
except ImportError:
print("Error: Cython is not installed! You will only be able to use the \
much slower Python backend in PySpike.")
|