prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  distributed-1.15.0rc1 seems wrongly requiring "futures" from a Python-3.6 installation
  Collecting futures (from distributed>=1.14; extra == "complete"->dask[complete]->-r C:\Winpython\basedir36
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 
  3 import os
  4 from setuptools import setup
  5 import sys
  6 import versioneer
  7 
  8 requires = open('requirements.txt').read().strip().split('\n')
  9 
  10 setup(name='distributed',
  11       version=versioneer.get_version(),
  12       cmdclass=versioneer.get_cmdclass(),
  13       description='Distributed computing',
  14       url='https://distributed.readthedocs.io/en/latest/',
  15       maintainer='Matthew Rocklin',
  16       maintainer_email='mrocklin@gmail.com',
  17       license='BSD',
  18       package_data={ '': ['templates/index.html'], },
  19       include_package_data=True,
  20       install_requires=requires,
  21       packages=['distributed',
  22                 'distributed.bokeh',
  23                 'distributed.bokeh.background',
  24                 'distributed.bokeh.status',
  25                 'distributed.bokeh.tasks',
  26                 'distributed.bokeh.workers',
  27                 'distributed.cli',
  28                 'distributed.deploy',
  29                 'distributed.diagnostics',
  30                 'distributed.protocol',
  31                 'distributed.http'],
  32       long_description=(open('README.md').read() if os.path.exists('README.md')
  33                         else ''),
  34       entry_points='''
  35         [console_scripts]
  36         dask-ssh=distributed.cli.dask_ssh:go
  37         dask-submit=distributed.cli.dask_submit:go
  38         dask-remote=distributed.cli.dask_remote:go
  39         dask-scheduler=distributed.cli.dask_scheduler:go
  40         dask-worker=distributed.cli.dask_worker:go
  41       ''',
  42       zip_safe=False)
  43
  [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
  @@ -6,6 +6,18 @@
   import versioneer
   
   requires = open('requirements.txt').read().strip().split('\n')
  +install_requires = []
  +extras_require = {}
  +for r in requires:
  +    if ';' in r:
  +        # requirements.txt conditional dependencies need to be reformatted for wheels
  +        # to the form: `'[extra_name]:condition' : ['requirements']`
  +        req, cond = r.split(';', 1)
  +        cond = ':' + cond
  +        cond_reqs = extras_require.setdefault(cond, [])
  +        cond_reqs.append(req)
  +    else:
  +        install_requires.append(r)
   
   setup(name='distributed',
         version=versioneer.get_version(),
  @@ -17,7 +29,8 @@
         license='BSD',
         package_data={ '': ['templates/index.html'], },
         include_package_data=True,
  -      install_requires=requires,
  +      install_requires=install_requires,
  +      extras_require=extras_require,
         packages=['distributed',
                   'distributed.bokeh',
                   'distributed.bokeh.background',
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -6,6 +6,18 @@\n import versioneer\n \n requires = open('requirements.txt').read().strip().split('\\n')\n+install_requires = []\n+extras_require = {}\n+for r in requires:\n+    if ';' in r:\n+        # requirements.txt conditional dependencies need to be reformatted for wheels\n+        # to the form: `'[extra_name]:condition' : ['requirements']`\n+        req, cond = r.split(';', 1)\n+        cond = ':' + cond\n+        cond_reqs = extras_require.setdefault(cond, [])\n+        cond_reqs.append(req)\n+    else:\n+        install_requires.append(r)\n \n setup(name='distributed',\n       version=versioneer.get_version(),\n@@ -17,7 +29,8 @@\n       license='BSD',\n       package_data={ '': ['templates/index.html'], },\n       include_package_data=True,\n-      install_requires=requires,\n+      install_requires=install_requires,\n+      extras_require=extras_require,\n       packages=['distributed',\n                 'distributed.bokeh',\n                 'distributed.bokeh.background',\n", "issue": "distributed-1.15.0rc1 seems wrongly requiring \"futures\" from a Python-3.6 installation\nCollecting futures (from distributed>=1.14; extra == \"complete\"->dask[complete]->-r C:\\Winpython\\basedir36\n", "before_files": [{"content": "#!/usr/bin/env python\n\nimport os\nfrom setuptools import setup\nimport sys\nimport versioneer\n\nrequires = open('requirements.txt').read().strip().split('\\n')\n\nsetup(name='distributed',\n      version=versioneer.get_version(),\n      cmdclass=versioneer.get_cmdclass(),\n      description='Distributed computing',\n      url='https://distributed.readthedocs.io/en/latest/',\n      maintainer='Matthew Rocklin',\n      maintainer_email='mrocklin@gmail.com',\n      license='BSD',\n      package_data={ '': ['templates/index.html'], },\n      include_package_data=True,\n      install_requires=requires,\n      packages=['distributed',\n                'distributed.bokeh',\n                'distributed.bokeh.background',\n                'distributed.bokeh.status',\n                'distributed.bokeh.tasks',\n                'distributed.bokeh.workers',\n                'distributed.cli',\n                'distributed.deploy',\n                'distributed.diagnostics',\n                'distributed.protocol',\n                'distributed.http'],\n      long_description=(open('README.md').read() if os.path.exists('README.md')\n                        else ''),\n      entry_points='''\n        [console_scripts]\n        dask-ssh=distributed.cli.dask_ssh:go\n        dask-submit=distributed.cli.dask_submit:go\n        dask-remote=distributed.cli.dask_remote:go\n        dask-scheduler=distributed.cli.dask_scheduler:go\n        dask-worker=distributed.cli.dask_worker:go\n      ''',\n      zip_safe=False)\n", "path": "setup.py"}]}