2012-01-04 07:43:54 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2012-09-04 04:20:32 +08:00
|
|
|
from __future__ import print_function
|
2012-01-04 07:43:54 +08:00
|
|
|
from setuptools import setup
|
|
|
|
import sys
|
2012-06-05 01:55:23 +08:00
|
|
|
from xml.etree.ElementTree import ElementTree
|
2012-01-04 07:43:54 +08:00
|
|
|
|
2012-01-19 10:40:01 +08:00
|
|
|
try:
|
2012-06-05 01:55:23 +08:00
|
|
|
root = ElementTree(None, 'stack.xml')
|
|
|
|
version = root.findtext('version')
|
2012-09-04 04:20:32 +08:00
|
|
|
except Exception as e:
|
|
|
|
print('Could not extract version from your stack.xml:\n%s' % e, file=sys.stderr)
|
2012-05-31 04:31:28 +08:00
|
|
|
sys.exit(-1)
|
|
|
|
|
|
|
|
sys.path.insert(0, 'src')
|
2012-01-19 10:40:01 +08:00
|
|
|
|
2012-06-05 01:55:23 +08:00
|
|
|
setup(name = 'roslib',
|
|
|
|
version = version,
|
|
|
|
packages = ['ros', 'roslib', 'rosunit', 'rosmake', 'rosclean', 'roscreate', 'rosboost_cfg'],
|
2012-01-04 07:43:54 +08:00
|
|
|
package_dir = {'ros':'core/roslib/src/ros',
|
|
|
|
'roslib':'core/roslib/src/roslib',
|
|
|
|
'rosunit':'tools/rosunit/src/rosunit',
|
|
|
|
'rosmake':'tools/rosmake/src/rosmake',
|
|
|
|
'rosclean':'tools/rosclean/src/rosclean',
|
2012-01-04 10:52:15 +08:00
|
|
|
'roscreate':'tools/roscreate/src/roscreate',
|
2012-01-05 03:58:26 +08:00
|
|
|
'rosboost_cfg':'tools/rosboost_cfg/src/rosboost_cfg',
|
2012-01-04 07:43:54 +08:00
|
|
|
},
|
2012-01-05 09:09:11 +08:00
|
|
|
package_data = {
|
|
|
|
'roscreate': ['*.tmpl'],
|
|
|
|
},
|
2012-01-04 10:49:26 +08:00
|
|
|
install_requires=['rospkg'],
|
2012-01-04 07:43:54 +08:00
|
|
|
scripts = ['tools/rosclean/scripts/rosclean',
|
|
|
|
'tools/rosmake/scripts/rosmake',
|
2012-01-04 10:52:15 +08:00
|
|
|
'tools/rosunit/scripts/rosunit',
|
2012-01-05 03:58:26 +08:00
|
|
|
'tools/rosboost_cfg/scripts/rosboost-cfg',
|
2012-01-05 09:09:11 +08:00
|
|
|
'tools/roscreate/scripts/roscreate-pkg',
|
2012-01-04 07:43:54 +08:00
|
|
|
],
|
2012-01-05 03:58:26 +08:00
|
|
|
author = "Maintained by Ken Conley",
|
2012-01-04 07:43:54 +08:00
|
|
|
author_email = "kwc@willowgarage.com",
|
|
|
|
url = "http://www.ros.org/wiki/roslib",
|
2012-01-04 10:49:26 +08:00
|
|
|
download_url = "http://pr.willowgarage.com/downloads/roslib/",
|
2012-01-04 07:43:54 +08:00
|
|
|
keywords = ["ROS"],
|
|
|
|
classifiers = [
|
2012-01-04 10:49:26 +08:00
|
|
|
"Programming Language :: Python",
|
2012-01-04 07:43:54 +08:00
|
|
|
"License :: OSI Approved :: BSD License" ],
|
2012-01-04 10:49:26 +08:00
|
|
|
description = "roslib",
|
2012-01-04 07:43:54 +08:00
|
|
|
long_description = """\
|
|
|
|
Internal Python libraries for low-level 'ros' stack. This also installs the rosmake and rosclean tools.
|
|
|
|
This does *not* include the ROS communication libraries.
|
|
|
|
""",
|
|
|
|
license = "BSD"
|
|
|
|
)
|