forked from CanberraUAV/cuav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (58 loc) · 2.9 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
from setuptools import setup, Extension
import numpy as np
import platform, os
version = '1.4.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"]
chameleon = Extension('cuav.camera.chameleon',
sources = ['cuav/camera/chameleon_py.c',
'cuav/camera/chameleon.c',
'cuav/camera/chameleon_util.c'],
libraries = ['dc1394', 'm', 'usb-1.0'],
extra_compile_args=extra_compile_args + ['-O0'])
ext_modules.append(chameleon)
scanner = Extension('cuav.image.scanner',
sources = ['cuav/image/scanner.c', 'cuav/image/imageutil.c'],
libraries = ['jpeg'],
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',
'gooey'],
author_email = '[email protected]',
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(),
'cuav/camera/include'],
packages = ['cuav', 'cuav.lib', 'cuav.image', 'cuav.camera', 'cuav.uav', 'cuav.modules'],
scripts = [ 'cuav/tools/geosearch.py', 'cuav/tools/geotag.py',
'cuav/tools/cuav_lens.py', 'cuav/tools/agl_mission.py',
'cuav/tools/pgm_convert.py',
'cuav/tools/thermal_view.py',
'cuav/tests/cuav_benchmark.py' ],
package_data = { 'cuav' : [ 'tests/test-8bit.pgm',
'data/chameleon1_arecont0.json',
'camera/include/*.h',
'image/include/*.h']},
ext_modules = ext_modules)