-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
35 lines (31 loc) · 947 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
33
34
35
from os import environ
from os.path import dirname, join
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
have_cython = True
except ImportError:
have_cython = False
if have_cython:
kivyparticle_files = [
'particlesystem/python/particlesystem.pyx',
]
cmdclass = {'build_ext': build_ext}
else:
kivyparticle_files = [
'particlesystem/python/particlesystem.c',
]
cmdclass = {}
ext = Extension('particlesystem',
kivyparticle_files, include_dirs=[],
extra_compile_args=['-std=c99', '-ffast-math'])
if environ.get('READTHEDOCS', None) == 'True':
ext.pyrex_directives = {'embedsignature': True}
setup(
name='particlesystem',
description='Particle System is based on the Starling Particle System',
author='Jacob Kovac',
author_email='kovac1066@gmail.com',
cmdclass=cmdclass,
ext_modules=[ext])