-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
50 lines (41 loc) · 1.3 KB
/
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
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/python
import glob
import platform
import sys
import os
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, Extension
system, node, release, version, machine, processor = platform.uname()
sources = glob.glob('src/falcon/*.cc') + ['src/falcon/rmodule.i']
sources.remove('src/falcon/rlist.cc')
setup(
name='falcon',
version='0.05',
maintainer='Russell Power',
maintainer_email='[email protected]',
url='http://github.com/rjpower/falcon',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: C++',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
description='Faster than a speeding bullet...',
package_dir={'': 'src'},
packages=['falcon'],
ext_modules=[
Extension('_falcon_core',
include_dirs=['./src'],
sources=sources,
swig_opts = ['-Isrc', '-modern', '-O', '-c++', '-w312,509'],
extra_compile_args=['-fno-gcse', '-fno-crossjumping', '-ggdb2', '-std=c++0x', '-Isrc/sparsehash-2.0.2/src'],
extra_link_args=([] if system == 'Darwin' else ['-lrt']),
)
]
)