old_contents: #!/usr/bin/env python2
  ## -*- coding: utf-8 -*-
  ##
  ## Copyright (C) - Triton
  ## This program is under the terms of the LGPLv3 License.
  ##
  
  from   setuptools import setup
  import os
  import site
  import shutil
  import platform
  
  package_name        = 'triton'
  version             = '0.3'
  package_description = '''
  Triton is a dynamic binary analysis (DBA) framework. It provides internal components like a
  Dynamic Symbolic Exuction (DSE) engine, a Taint Engine, AST Semantics representations of the x86 and
  the x86-64 instruction set, SMT simplification passes, a Z3 interface to solve constraints and,
  the last but not least, Python bindings. Based on these components, you are able to build
  program analysis tools, automate reverse engineering and perform software verification.
  '''.strip()
  
  if platform.system() == 'Linux':
      shutil.copyfile('build/libtriton.so', 'build/triton.so')
  
  elif platform.system() == 'Darwin':
      shutil.copyfile('build/libtriton.dylib', 'build/triton.so')
  
  else:
      print '[+] Invalid platform - Send us a pull request :)'
      sys.exit(1)
  
  setup(
      name                 = package_name,
      version              = version,
      description          = package_description,
      license              = 'LGPLv3',
      author               = 'Jonathan Salwan',
      author_email         = 'jsalwan@quarkslab.com',
      url                  = 'http://triton.quarkslab.com',
      zip_safe             = False,
      include_package_data = True,
      data_files           = [(site.getsitepackages()[0], ['build/triton.so'])],
      classifiers          = [
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: C++',
          'Programming Language :: Python :: 2.7',
          'Topic :: Scientific/Engineering',
          'Topic :: Security',
      ]
  )
  
  
new_contents: #!/usr/bin/env python2
  ## -*- coding: utf-8 -*-
  ##
  ## Copyright (C) - Triton
  ## This program is under the terms of the LGPLv3 License.
  ##
  
  from   setuptools import setup
  import os
  import site
  import shutil
  import platform
  
  package_name        = 'triton'
  version             = '0.3'
  package_description = '''
  Triton is a dynamic binary analysis (DBA) framework. It provides internal components like a
  Dynamic Symbolic Exuction (DSE) engine, a Taint Engine, AST Semantics representations of the x86 and
  the x86-64 instruction set, SMT simplification passes, a Z3 interface to solve constraints and,
  the last but not least, Python bindings. Based on these components, you are able to build
  program analysis tools, automate reverse engineering and perform software verification.
  '''.strip()
  
  if platform.system() == 'Linux':
      shutil.copyfile('build/libtriton.so', 'build/triton.so')
  
  elif platform.system() == 'Darwin':
      shutil.copyfile('build/libtriton.dylib', 'build/triton.so')
  
  else:
      print '[+] Invalid platform - Send us a pull request :)'
      sys.exit(1)
  
  setup(
      name                 = package_name,
      version              = version,
      description          = package_description,
      license              = 'LGPLv3',
      author               = 'Jonathan Salwan',
      author_email         = 'jsalwan@quarkslab.com',
      url                  = 'http://triton.quarkslab.com',
      zip_safe             = False,
      include_package_data = True,
      data_files           = [([path for path in site.getsitepackages() if 'System' not in path][0], ['build/triton.so'])],
      classifiers          = [
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: C++',
          'Programming Language :: Python :: 2.7',
          'Topic :: Scientific/Engineering',
          'Topic :: Security',
      ]
  )
  
  
subject: Update setuptool