-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
55 lines (50 loc) · 2.44 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
from setuptools import setup, Extension
import numpy as np
import platform, os
import sys
version = '1.5.0'
ext_modules = []
if platform.system() == 'Windows':
extra_compile_args=["-std=gnu99", "-O3"]
else:
if platform.machine().find('arm') != -1:
extra_compile_args=["-std=gnu99", "-O3", "-mfpu=neon"]
else:
extra_compile_args=["-std=gnu99", "-O3"]
scanner = Extension('cuav.image.scanner',
sources = ['cuav/image/scanner.c', 'cuav/image/imageutil.c'],
libraries = [],
extra_compile_args=extra_compile_args)
# extra_compile_args=extra_compile_args + ['-O0'])
ext_modules.append(scanner)
setup (name = 'cuav',
zip_safe=True,
version = version,
description = 'CanberraUAV UAV code',
long_description = '''A set of python libraries and tools developed by CanberraUAV for the Outback Challenge. This includes an image search algorithm with optimisation for ARM processors and a number of mission planning and analysis tools.''',
url = 'https://github.com/CanberraUAV/cuav',
author = 'CanberraUAV',
install_requires = [ 'pymavlink',
'MAVProxy',
'pytest',
'pytest-mock'],
author_email = 'andrew-cuav@tridgell.net',
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'
],
license='GPLv3',
include_dirs = [np.get_include()],
packages = ['cuav', 'cuav.lib', 'cuav.image', 'cuav.camera', 'cuav.uav', 'cuav.modules', 'cuav.tools'],
scripts = [ 'cuav/tools/geosearch.py', 'cuav/tools/geotag.py',
'cuav/tools/cuav_lens.py', 'cuav/tools/agl_mission.py',
'cuav/tools/thermal_view.py', 'cuav/tools/playback.py'],
package_data = { 'cuav' : [ 'image/include/*.h',
'data/ChameleonArecort/params.json',
'data/PiCamV2/params.json',
'data/PiCamV2/params_half.json']},
ext_modules = ext_modules)