prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Python 2.6 issues with wheels and dependencies
  My Travis tests failed on Python 2.6: piskvorky/smart_open#15 .
  
  After some digging around it appears this is because of `moto`. Moto apparently depends on some `ordereddict` package, but that package is not installed (nor mentioned anywhere in the docs, AFAICS).
  
  Do you think you could make `ordereddict` a dependency for moto, when installing on Python 2.6?
  
  In other words, after I successfully run `pip install moto`, I'd expect moto to work, even on Python 2.6.
  
  And thanks for the great package!
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 from __future__ import unicode_literals
  3 from setuptools import setup, find_packages
  4 
  5 install_requires = [
  6     "Jinja2",
  7     "boto>=2.20.0",
  8     "flask",
  9     "httpretty>=0.6.1",
  10     "requests",
  11     "xmltodict",
  12     "six",
  13     "werkzeug",
  14 ]
  15 
  16 import sys
  17 
  18 if sys.version_info < (2, 7):
  19     # No buildint OrderedDict before 2.7
  20     install_requires.append('ordereddict')
  21 
  22 setup(
  23     name='moto',
  24     version='0.4.10',
  25     description='A library that allows your python tests to easily'
  26                 ' mock out the boto library',
  27     author='Steve Pulec',
  28     author_email='spulec@gmail',
  29     url='https://github.com/spulec/moto',
  30     entry_points={
  31         'console_scripts': [
  32             'moto_server = moto.server:main',
  33         ],
  34     },
  35     packages=find_packages(exclude=("tests", "tests.*")),
  36     install_requires=install_requires,
  37     license="Apache",
  38     test_suite="tests",
  39     classifiers=[
  40         "Programming Language :: Python :: 2",
  41         "Programming Language :: Python :: 2.6",
  42         "Programming Language :: Python :: 2.7",
  43         "Programming Language :: Python :: 3",
  44         "Programming Language :: Python :: 3.3",
  45         "License :: OSI Approved :: Apache Software License",
  46         "Topic :: Software Development :: Testing",
  47     ],
  48 )
  49
  [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
  @@ -13,11 +13,10 @@
       "werkzeug",
   ]
   
  -import sys
  -
  -if sys.version_info < (2, 7):
  -    # No buildint OrderedDict before 2.7
  -    install_requires.append('ordereddict')
  +extras_require = {
  +    # No builtin OrderedDict before 2.7
  +    ':python_version=="2.6"': ['ordereddict'],
  +}
   
   setup(
       name='moto',
  @@ -34,6 +33,7 @@
       },
       packages=find_packages(exclude=("tests", "tests.*")),
       install_requires=install_requires,
  +    extras_require=extras_require,
       license="Apache",
       test_suite="tests",
       classifiers=[
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -13,11 +13,10 @@\n     \"werkzeug\",\n ]\n \n-import sys\n-\n-if sys.version_info < (2, 7):\n-    # No buildint OrderedDict before 2.7\n-    install_requires.append('ordereddict')\n+extras_require = {\n+    # No builtin OrderedDict before 2.7\n+    ':python_version==\"2.6\"': ['ordereddict'],\n+}\n \n setup(\n     name='moto',\n@@ -34,6 +33,7 @@\n     },\n     packages=find_packages(exclude=(\"tests\", \"tests.*\")),\n     install_requires=install_requires,\n+    extras_require=extras_require,\n     license=\"Apache\",\n     test_suite=\"tests\",\n     classifiers=[\n", "issue": "Python 2.6 issues with wheels and dependencies\nMy Travis tests failed on Python 2.6: piskvorky/smart_open#15 .\n\nAfter some digging around it appears this is because of `moto`. Moto apparently depends on some `ordereddict` package, but that package is not installed (nor mentioned anywhere in the docs, AFAICS).\n\nDo you think you could make `ordereddict` a dependency for moto, when installing on Python 2.6?\n\nIn other words, after I successfully run `pip install moto`, I'd expect moto to work, even on Python 2.6.\n\nAnd thanks for the great package!\n\n", "before_files": [{"content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n    \"Jinja2\",\n    \"boto>=2.20.0\",\n    \"flask\",\n    \"httpretty>=0.6.1\",\n    \"requests\",\n    \"xmltodict\",\n    \"six\",\n    \"werkzeug\",\n]\n\nimport sys\n\nif sys.version_info < (2, 7):\n    # No buildint OrderedDict before 2.7\n    install_requires.append('ordereddict')\n\nsetup(\n    name='moto',\n    version='0.4.10',\n    description='A library that allows your python tests to easily'\n                ' mock out the boto library',\n    author='Steve Pulec',\n    author_email='spulec@gmail',\n    url='https://github.com/spulec/moto',\n    entry_points={\n        'console_scripts': [\n            'moto_server = moto.server:main',\n        ],\n    },\n    packages=find_packages(exclude=(\"tests\", \"tests.*\")),\n    install_requires=install_requires,\n    license=\"Apache\",\n    test_suite=\"tests\",\n    classifiers=[\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.6\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.3\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Topic :: Software Development :: Testing\",\n    ],\n)\n", "path": "setup.py"}]}