setup.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 try:
00004     from setuptools import setup
00005 except ImportError:
00006     from distutils.core import setup
00007 
00008 try:
00009     from catkin_pkg.python_setup import generate_distutils_setup
00010     d = generate_distutils_setup()
00011 except ImportError:
00012     # extract information from package.xml manually when catkin_pkg is unavailable
00013     from xml.etree import ElementTree
00014     tree = ElementTree.parse('package.xml')
00015     root = tree.getroot()
00016     d = {
00017         'name': root.find('./name').text,
00018         'version': root.find('./version').text,
00019         'maintainer': root.findall('./maintainer')[0].text,
00020         'maintainer_email': root.findall('./maintainer')[0].attrib['email'],
00021         'license': ', '.join([x.text for x in root.findall('./license')]),
00022         'url': root.findall('./url')[0].text,
00023         'author': ', '.join([x.text for x in root.findall('./author')]),
00024     }
00025     description = root.find('./description').text.strip()
00026     if len(description) <= 200:
00027         d['description'] = description
00028     else:
00029         d['description'] = description[:197] + '...'
00030         d['long_description'] = description
00031 
00032 d.update({
00033     'packages': [d['name']],
00034     'package_dir': {'': 'src'},
00035     'classifiers': [
00036         'Development Status :: 5 - Production/Stable',
00037         'Intended Audience :: Developers',
00038         'Operating System :: OS Independent',
00039         'Programming Language :: Python',
00040         'Topic :: Software Development :: Libraries :: Python Modules',
00041         'License :: OSI Approved :: BSD License',
00042         'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
00043         'License :: OSI Approved :: GNU General Public License (GPL)',
00044     ],
00045 })
00046 
00047 setup(**d)


python_qt_binding
Author(s): Dave Hershberger, Dorian Scholz, Dirk Thomas
autogenerated on Thu Aug 27 2015 14:35:26