forked from ros-infrastructure/rospkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·40 lines (34 loc) · 1.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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
kwargs = {
'name': 'rospkg',
'version': '1.1.4', # same version as in src/rospkg/__init__.py
'packages': ['rospkg'],
'package_dir': {'': 'src'},
'scripts': ['scripts/rosversion'],
'install_requires': ['PyYAML'],
'author': 'Ken Conley',
'author_email': '[email protected]',
'url': 'http://wiki.ros.org/rospkg',
'download_url': 'http://download.ros.org/downloads/rospkg/',
'keywords': ['ROS'],
'classifiers': [
'Programming Language :: Python',
'License :: OSI Approved :: BSD License'],
'description': 'ROS package library',
'long_description': """\
Library for retrieving information about ROS packages and stacks.
""",
'license': 'BSD'
}
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'] = {}
if 'SKIP_PYTHON_SCRIPTS' in os.environ:
kwargs['name'] += '_modules'
kwargs['scripts'] = []
setup(**kwargs)