prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  use environment markers and reactivate universal wheels + distribute wheels
  right now pip install  is broken due to the released package claiming to be universal wheel but not using environment markers
  
  so pip makes a wheel for all pythons with the first python its run on, then its used on all other pythons,
  so a pip install on python2.6 would create a broken wheel with the extra dependency which is then subsequently tried in other pythons, and will utterly break them
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 # coding=utf-8
  3 
  4 import os
  5 import io
  6 import sys
  7 from setuptools import setup, find_packages
  8 
  9 here = os.path.abspath(os.path.dirname(__file__))
  10 README = io.open(os.path.join(here, 'README.rst'), encoding="utf8").read()
  11 NEWS = io.open(os.path.join(here, 'CHANGELOG.rst'), encoding="utf8").read()
  12 
  13 
  14 version = '0.5.3'
  15 
  16 install_requires = []
  17 if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
  18         (sys.version_info[0] == 3 and sys.version_info[1] < 1)):
  19     install_requires.append('importlib')
  20 
  21 # this module can be zip-safe if the zipimporter implements iter_modules or if
  22 # pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.
  23 try:
  24     import pkgutil
  25     import zipimport
  26     zip_safe = hasattr(zipimport.zipimporter, "iter_modules") or \
  27         zipimport.zipimporter in pkgutil.iter_importer_modules.registry.keys()
  28 except (ImportError, AttributeError):
  29     zip_safe = False
  30 
  31 setup(
  32     name='fake-factory',
  33     version=version,
  34     description="Faker is a Python package that generates fake data for you.",
  35     long_description=README + '\n\n' + NEWS,
  36     scripts=['faker/bin/faker'],
  37     classifiers=[
  38         # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
  39         'Development Status :: 3 - Alpha',
  40         'Environment :: Console',
  41         'Intended Audience :: Developers',
  42         'Programming Language :: Python',
  43         'Programming Language :: Python :: 2',
  44         'Programming Language :: Python :: 3',
  45         'Programming Language :: Python :: 3.4',
  46         'Topic :: Software Development :: Libraries :: Python Modules',
  47         'Topic :: Software Development :: Testing',
  48         'Topic :: Utilities',
  49         'License :: OSI Approved :: MIT License'
  50     ],
  51     keywords='faker fixtures data test mock generator',
  52     author='joke2k',
  53     author_email='joke2k@gmail.com',
  54     url='http://github.com/joke2k/faker',
  55     license='MIT License',
  56     packages=find_packages(exclude=['*.tests']),
  57     platforms=["any"],
  58     test_suite='faker.tests',
  59     zip_safe=zip_safe,
  60     install_requires=install_requires
  61 )
  62
  [end of setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -3,7 +3,6 @@
   
   import os
   import io
  -import sys
   from setuptools import setup, find_packages
   
   here = os.path.abspath(os.path.dirname(__file__))
  @@ -13,11 +12,6 @@
   
   version = '0.5.3'
   
  -install_requires = []
  -if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
  -        (sys.version_info[0] == 3 and sys.version_info[1] < 1)):
  -    install_requires.append('importlib')
  -
   # this module can be zip-safe if the zipimporter implements iter_modules or if
   # pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.
   try:
  @@ -33,7 +27,9 @@
       version=version,
       description="Faker is a Python package that generates fake data for you.",
       long_description=README + '\n\n' + NEWS,
  -    scripts=['faker/bin/faker'],
  +    entry_points={
  +        'console_scripts': ['faker=faker.cli:execute_from_command_line'],
  +    },
       classifiers=[
           # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
           'Development Status :: 3 - Alpha',
  @@ -57,5 +53,8 @@
       platforms=["any"],
       test_suite='faker.tests',
       zip_safe=zip_safe,
  -    install_requires=install_requires
  +    extras_require={
  +        ':python_version=="2.6"': ['importlib'],
  +        ':python_version=="3.0"': ['importlib'],
  +    }
   )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -3,7 +3,6 @@\n \n import os\n import io\n-import sys\n from setuptools import setup, find_packages\n \n here = os.path.abspath(os.path.dirname(__file__))\n@@ -13,11 +12,6 @@\n \n version = '0.5.3'\n \n-install_requires = []\n-if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or\n-        (sys.version_info[0] == 3 and sys.version_info[1] < 1)):\n-    install_requires.append('importlib')\n-\n # this module can be zip-safe if the zipimporter implements iter_modules or if\n # pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.\n try:\n@@ -33,7 +27,9 @@\n     version=version,\n     description=\"Faker is a Python package that generates fake data for you.\",\n     long_description=README + '\\n\\n' + NEWS,\n-    scripts=['faker/bin/faker'],\n+    entry_points={\n+        'console_scripts': ['faker=faker.cli:execute_from_command_line'],\n+    },\n     classifiers=[\n         # See https://pypi.python.org/pypi?%3Aaction=list_classifiers\n         'Development Status :: 3 - Alpha',\n@@ -57,5 +53,8 @@\n     platforms=[\"any\"],\n     test_suite='faker.tests',\n     zip_safe=zip_safe,\n-    install_requires=install_requires\n+    extras_require={\n+        ':python_version==\"2.6\"': ['importlib'],\n+        ':python_version==\"3.0\"': ['importlib'],\n+    }\n )\n", "issue": "use environment markers and reactivate universal wheels + distribute wheels\nright now pip install  is broken due to the released package claiming to be universal wheel but not using environment markers\n\nso pip makes a wheel for all pythons with the first python its run on, then its used on all other pythons,\nso a pip install on python2.6 would create a broken wheel with the extra dependency which is then subsequently tried in other pythons, and will utterly break them\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# coding=utf-8\n\nimport os\nimport io\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = io.open(os.path.join(here, 'README.rst'), encoding=\"utf8\").read()\nNEWS = io.open(os.path.join(here, 'CHANGELOG.rst'), encoding=\"utf8\").read()\n\n\nversion = '0.5.3'\n\ninstall_requires = []\nif ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or\n        (sys.version_info[0] == 3 and sys.version_info[1] < 1)):\n    install_requires.append('importlib')\n\n# this module can be zip-safe if the zipimporter implements iter_modules or if\n# pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.\ntry:\n    import pkgutil\n    import zipimport\n    zip_safe = hasattr(zipimport.zipimporter, \"iter_modules\") or \\\n        zipimport.zipimporter in pkgutil.iter_importer_modules.registry.keys()\nexcept (ImportError, AttributeError):\n    zip_safe = False\n\nsetup(\n    name='fake-factory',\n    version=version,\n    description=\"Faker is a Python package that generates fake data for you.\",\n    long_description=README + '\\n\\n' + NEWS,\n    scripts=['faker/bin/faker'],\n    classifiers=[\n        # See https://pypi.python.org/pypi?%3Aaction=list_classifiers\n        'Development Status :: 3 - Alpha',\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Software Development :: Testing',\n        'Topic :: Utilities',\n        'License :: OSI Approved :: MIT License'\n    ],\n    keywords='faker fixtures data test mock generator',\n    author='joke2k',\n    author_email='joke2k@gmail.com',\n    url='http://github.com/joke2k/faker',\n    license='MIT License',\n    packages=find_packages(exclude=['*.tests']),\n    platforms=[\"any\"],\n    test_suite='faker.tests',\n    zip_safe=zip_safe,\n    install_requires=install_requires\n)\n", "path": "setup.py"}]}