-
Notifications
You must be signed in to change notification settings - Fork 112
/
setup.py
35 lines (32 loc) · 936 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
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='dronekit_sitl',
version='3.3.0',
description='DroneKit library to run SITL (simulation environment)',
author='Tim Ryan',
author_email='[email protected]',
url='https://github.com/dronekit/dronekit-sitl/',
install_requires = [
'psutil>=3.0',
'dronekit>=2.0.0b6',
'six>=1.10'
],
package_data={
'dronekit_sitl': ['*.parm'],
},
entry_points={
'console_scripts': [
'dronekit-sitl = dronekit_sitl.__init__:main'
]
},
packages = ['dronekit_sitl', 'dronekit_sitl.pysim'],
)
# Delete home dir scripts for fresh install, just in case.
import shutil
import os
sitl_target = os.path.normpath(os.path.expanduser('~/.dronekit/sitl'))
try:
shutil.rmtree(sitl_target)
print('Cleared cached SITL binaries.')
except:
pass