#!/usr/bin/env python

#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2013, The pyqi project"
__credits__ = ["Rob Knight", "Greg Caporaso", "Jai Ram Rideout",
               "Daniel McDonald", "Doug Wendel"]
__license__ = "BSD"
__version__ = "0.2.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"

from distutils.core import setup
from glob import glob

setup(name='pyqi',
      version=__version__,
      description='pyqi: expose your interface',
      author=__maintainer__,
      author_email=__email__,
      maintainer=__maintainer__,
      maintainer_email=__email__,
      url='http://bipy.github.io/pyqi',
      packages=['pyqi',
                'pyqi/commands',
                'pyqi/core',
                'pyqi/core/interfaces',
                'pyqi/core/interfaces/optparse',
                'pyqi/interfaces',
                'pyqi/interfaces/optparse',
                'pyqi/interfaces/optparse/config',
                ],
      scripts=glob('scripts/pyqi*'))

@@ -737,25 +737,288 @@
 ob%0A%0A
-setup(name='pyqi'
+# from https://wiki.python.org/moin/PortingPythonToPy3k%0Atry:%0A    # python 3.x%0A    from distutils.command.build_py import build_py_2to3 as build_py%0Aexcept:%0A    # python 2.x%0A    from distutils.command.build_py import build_py%0A%0Asetup(name='pyqi',%0A      cmdclass=%7B'build_py':build_py%7D
 ,%0A  

add 2to3 conversion in setup.py