-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
72 lines (66 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from setuptools import find_packages
from distutils.core import setup
from distutils.extension import Extension
import os
version = '0.5.6'
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
cmdclass = {}
ext_modules = [ ]
pyjsbsim_srcs = []
if use_cython:
pyjsbsim_srcs.append("cython/fgfdmexec.pyx")
cmdclass.update({'build_ext':build_ext})
else:
pyjsbsim_srcs.append("cython/fgfdmexec.cpp")
for src in pyjsbsim_srcs:
if not os.path.isfile(src):
raise IOError("Must install Cython >= 0.18 to build from git")
ext_modules += [ Extension('pyjsbsim.jsbsim_cython',
sources= pyjsbsim_srcs,
libraries=['JSBSim'],
include_dirs=[
'/usr/local/include/JSBSim'
],
language='c++'),
]
setup(name='PyJSBSim',
version=version,
description='A python interface for JSBSim using Cython.',
long_description='''\
Interfaces to JSBSim using Cython.
''',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering',
'Topic :: Text Processing :: General',
],
# Get strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
author='James Goppert',
author_email='[email protected]',
url='https://github.com/arktools/pyjsbsim',
license='GPLv3',
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
install_requires=['numpy'],
ext_modules= ext_modules,
cmdclass = cmdclass,
test_suite='test',
#package_data={'pyjsbsim': ['templates/*']},
#entry_points={
# 'console_scripts': [
# 'pydatcom-export = pydatcom:DatcomExporter.command_line',
# 'pydatcom-plot = pydatcom:DatcomPlotter.command_line'
# ]},
)