old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
  # Use of this source code is governed by a BSD-style license (see the COPYING file).
  """ QiBuild Setup """
  from __future__ import absolute_import
  from __future__ import unicode_literals
  from __future__ import print_function
  
  import os
  from setuptools import setup, find_packages
  
  
  def get_qibuild_cmake_files():
      """ Get QiBuild CMake Files """
      res = list()
      cmake_dest = 'share/cmake'
      for (root, _dirs, filenames) in os.walk('cmake'):
          rel_root = os.path.relpath(root, 'cmake')
          if rel_root == ".":
              rel_root = ""
          rel_filenames = [os.path.join('cmake', rel_root, x) for x in filenames]
          rel_dest = os.path.join(cmake_dest, rel_root)
          res.append((rel_dest, rel_filenames))
      return res
  
  
  setup(
      name="qibuild",
      version="3.12",
      description="The Meta Build Framework",
      url="http://doc.aldebaran.com/qibuild",
      author="SoftBank Robotics",
      author_email="qibuild-dev@aldebaran-robotics.com",
      py_modules=["qicd"],
      packages=find_packages("python"),
      package_dir={"": "python".encode("utf-8")},
      include_package_data=True,
      install_requires=[
          "qi>=1.5",
          "six>=1.11",
          "sphinx<=1.3.1",
          "sphinx_intl<=0.9.5",
          "tabulate>=0.8",
          "virtualenv>=16",
      ],
      data_files=get_qibuild_cmake_files(),
      license="BSD",
      entry_points={
          "console_scripts": [
              "qidoc        = qisys.main:main",
              "qilinguist   = qisys.main:main",
              "qisrc        = qisys.main:main",
              "qibuild      = qisys.main:main",
              "qipkg        = qisys.main:main",
              "qipy         = qisys.main:main",
              "qitest       = qisys.main:main",
              "qitoolchain  = qisys.main:main",
          ]
      }
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  # Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved.
  # Use of this source code is governed by a BSD-style license (see the COPYING file).
  """ QiBuild Setup """
  from __future__ import absolute_import
  from __future__ import unicode_literals
  from __future__ import print_function
  
  import os
  from setuptools import setup, find_packages
  
  
  def get_qibuild_cmake_files():
      """ Get QiBuild CMake Files """
      res = list()
      cmake_dest = 'share/cmake'
      for (root, _dirs, filenames) in os.walk('cmake'):
          rel_root = os.path.relpath(root, 'cmake')
          if rel_root == ".":
              rel_root = ""
          rel_filenames = [os.path.join('cmake', rel_root, x) for x in filenames]
          rel_dest = os.path.join(cmake_dest, rel_root)
          res.append((rel_dest, rel_filenames))
      return res
  
  
  setup(
      name="qibuild",
      version="3.12",
      description="The Meta Build Framework",
      url="http://doc.aldebaran.com/qibuild",
      author="SoftBank Robotics",
      author_email="qibuild-dev@aldebaran-robotics.com",
      py_modules=["qicd"],
      packages=find_packages("python"),
      package_dir={"": "python".encode("utf-8")},
      include_package_data=True,
      install_requires=[
          "six>=1.11",
          "sphinx<=1.3.1",
          "sphinx_intl<=0.9.5",
          "tabulate>=0.8",
          "virtualenv>=16",
      ],
      data_files=get_qibuild_cmake_files(),
      license="BSD",
      entry_points={
          "console_scripts": [
              "qidoc        = qisys.main:main",
              "qilinguist   = qisys.main:main",
              "qisrc        = qisys.main:main",
              "qibuild      = qisys.main:main",
              "qipkg        = qisys.main:main",
              "qipy         = qisys.main:main",
              "qitest       = qisys.main:main",
              "qitoolchain  = qisys.main:main",
          ]
      }
  )
  
subject: Remove Qi Dependency as it is not available for Python 3 yet