forked from ros-infrastructure/rosdistro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (46 loc) · 1.67 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
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages, setup
kwargs = {
'name': 'rosdistro',
'version': '0.6.2', # same version as in src/rosdistro/__init__.py
'install_requires': ['PyYAML', 'setuptools'],
'packages': find_packages('src'),
'package_dir': {'': 'src'},
'scripts': [
# 'scripts/rosdistro',
'scripts/rosdistro_build_cache',
'scripts/rosdistro_freeze_source',
# 'scripts/rosdistro_convert',
# 'scripts/rosdistro_generate_cache',
'scripts/rosdistro_migrate_to_rep_141',
'scripts/rosdistro_migrate_to_rep_143',
'scripts/rosdistro_reformat'
],
'author': 'Wim Meeussen, Dirk Thomas',
'author_email': '[email protected], [email protected]',
'maintainer': 'Dirk Thomas',
'maintainer_email': '[email protected]',
'url': 'http://wiki.ros.org/rosdistro',
'download_url': 'http://download.ros.org/downloads/rosdistro/',
'keywords': ['ROS'],
'classifiers': [
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'License :: OSI Approved :: MIT License'],
'description': 'A tool to work with rosdistro files',
'long_description': 'A tool to work with rosdistro files',
'license': 'BSD, MIT'
}
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
kwargs['install_requires'].append('argparse')
if 'SKIP_PYTHON_MODULES' in os.environ:
kwargs['packages'] = []
kwargs['package_dir'] = {}
elif 'SKIP_PYTHON_SCRIPTS' in os.environ:
kwargs['name'] += '_modules'
kwargs['scripts'] = []
else:
kwargs['install_requires'] += ['catkin_pkg', 'rospkg']
setup(**kwargs)