Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 782 Bytes
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
ext_modules = []
names = [
'pyspades.vxl',
'pyspades.bytes',
'pyspades.packet',
'pyspades.contained',
'pyspades.common',
'pyspades.world',
'pyspades.loaders',
'pyspades.mapmaker'
]
for name in names:
extra = {'extra_compile_args' : ['-std=c++11']} if name in ['pyspades.vxl', 'pyspades.world', 'pyspades.mapmaker'] else {}
ext_modules.append(Extension(name, ['./%s.pyx' % name.replace('.', '/')],
language = 'c++', include_dirs=['./pyspades'], **extra))
setup(
name = 'pyspades extensions',
ext_modules = cythonize(ext_modules)
)