from setuptools import setup, find_packages


VERSION = '1.46'


setup(name='thefuck',
      version=VERSION,
      description="Magnificent app which corrects your previous console command",
      author='Vladimir Iakovlev',
      author_email='nvbn.rm@gmail.com',
      url='https://github.com/nvbn/thefuck',
      license='MIT',
      packages=find_packages(exclude=['ez_setup', 'examples',
                                      'tests', 'release']),
      include_package_data=True,
      zip_safe=False,
      install_requires=['pathlib', 'psutil', 'colorama', 'six'],
      entry_points={'console_scripts': [
          'thefuck = thefuck.main:main',
          'thefuck-alias = thefuck.shells:app_alias']})

@@ -1,8 +1,41 @@
+#!/usr/bin/env python%0Aimport sys%0A
 from set
@@ -71,16 +71,413 @@
 ckages%0A%0A
+if sys.version_info%5B0%5D == 2 and sys.version_info%5B1%5D %3C 7:%0A    print(%0A      'thefuck requires Python version 2.7 or later' +%0A      ' (%7B%7D.%7B%7D detected).'.format(*sys.version_info%5B:2%5D))%0A    sys.exit(-1)%0A%0Aif sys.version_info%5B0%5D == 3 and sys.version_info%5B1%5D %3C 3:%0A    print(%0A      'thefuck requires Python version 3.3 or later' +%0A      ' (%7B%7D.%7B%7D detected).'.format(*sys.version_info%5B:2%5D))%0A    sys.exit(-1)%0A
 %0AVERSION

add python version testing in setup.py