forked from fos/fos-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·41 lines (33 loc) · 967 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
36
37
38
39
40
#!/usr/bin/env python
''' Installation script for the fos package '''
from os.path import join as pjoin
from glob import glob
from distutils.core import setup
from distutils.extension import Extension
import numpy as np
from build_helpers import make_cython_ext
# we use cython to compile the module if we have it
try:
import Cython
except ImportError:
has_cython = False
else:
has_cython = True
col_ext, cmdclass = make_cython_ext(
'fos.core.collision',
has_cython,
include_dirs = [np.get_include()])
cgl_ext, cmdclass = make_cython_ext(
'fos.core.cython_gl',
has_cython,
include_dirs = [np.get_include()])
setup(name='fos',
version='0.2',
description='Scientific 3d Engine',
author='Fos Team',
author_email='garyfallidis@gmail.com',
url='http://github.com/Garyfallidis/Fos',
packages=['fos','fos.core'],
ext_modules = [col_ext,cgl_ext],
cmdclass = cmdclass,
)