We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN 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

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
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 FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

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',

{"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"}], "after_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')\ninstall_requires = []\nextras_require = {}\nfor 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\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=install_requires,\n      extras_require=extras_require,\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"}]}