We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[bug] pip package 0.1.3 fails to install
Both `python3.8 -m pip install fairscale --verbose` and `python3.8 -m pip install fairscale --no-build-isolation --verbose` trigger

```
ninja: error: '/tmp/pip-install-zqe21k7a/fairscale_4066f1fa225242299ead5fd852fd2ce8/fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp', needed by '/t
mp/pip-install-zqe21k7a/fairscale_4066f1fa225242299ead5fd852fd2ce8/build/temp.linux-x86_64-3.8/fairscale/clib/fused_adam_cuda/fused_adam_cuda.o', missin
g and no known rule to make it
```

Cloning the repository and running `python3.8 -m pip install . --verbose` from within the directory works fine.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `fairscale/__init__.py`
Content:
```
1 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
2 #
3 # This source code is licensed under the BSD license found in the
4 # LICENSE file in the root directory of this source tree.
5 
6 __version__ = "0.1.3"
7 
8 ################################################################################
9 # Import most common subpackages
10 ################################################################################
11 
12 from . import nn
13
```

Path: `setup.py`
Content:
```
1 #!/usr/bin/env python3
2 
3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
4 
5 import os
6 import re
7 import warnings
8 
9 import setuptools
10 import torch
11 from torch.utils.cpp_extension import CUDA_HOME, BuildExtension, CUDAExtension
12 
13 this_dir = os.path.dirname(os.path.abspath(__file__))
14 
15 
16 def fetch_requirements():
17     with open("requirements.txt") as f:
18         reqs = f.read().strip().split("\n")
19     return reqs
20 
21 
22 # https://packaging.python.org/guides/single-sourcing-package-version/
23 def find_version(version_file_path):
24     with open(version_file_path) as version_file:
25         version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
26         if version_match:
27             return version_match.group(1)
28         raise RuntimeError("Unable to find version string.")
29 
30 
31 extensions = []
32 cmdclass = {}
33 
34 force_cuda = os.getenv("FORCE_CUDA", "0") == "1"
35 if (torch.cuda.is_available() and CUDA_HOME is not None) or force_cuda:
36     extensions.extend(
37         [
38             CUDAExtension(
39                 name="fairscale.fused_adam_cuda",
40                 include_dirs=[os.path.join(this_dir, "fairscale/clib/fused_adam_cuda")],
41                 sources=[
42                     "fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp",
43                     "fairscale/clib/fused_adam_cuda/fused_adam_cuda_kernel.cu",
44                 ],
45                 extra_compile_args={"cxx": ["-O3"], "nvcc": ["-O3", "--use_fast_math"]},
46             )
47         ]
48     )
49 
50     cmdclass["build_ext"] = BuildExtension
51 else:
52     warnings.warn("Cannot install FusedAdam cuda.")
53 
54 
55 if __name__ == "__main__":
56     setuptools.setup(
57         name="fairscale",
58         description="fairscale: A PyTorch library for large-scale and high-performance training.",
59         version=find_version("fairscale/__init__.py"),
60         install_requires=fetch_requirements(),
61         include_package_data=True,
62         packages=setuptools.find_packages(exclude=("tests", "tests.*")),
63         ext_modules=extensions,
64         cmdclass=cmdclass,
65         python_requires=">=3.6",
66         author="Facebook AI Research",
67         author_email="todo@fb.com",
68         classifiers=[
69             "Programming Language :: Python :: 3.6",
70             "Programming Language :: Python :: 3.7",
71             "Programming Language :: Python :: 3.8",
72             "License :: OSI Approved :: BSD License",
73             "Topic :: Scientific/Engineering :: Artificial Intelligence",
74             "Operating System :: OS Independent",
75         ],
76     )
77
```
--- 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/fairscale/__init__.py b/fairscale/__init__.py
--- a/fairscale/__init__.py
+++ b/fairscale/__init__.py
@@ -3,7 +3,7 @@
 # This source code is licensed under the BSD license found in the
 # LICENSE file in the root directory of this source tree.
 
-__version__ = "0.1.3"
+__version__ = "0.1.4"
 
 ################################################################################
 # Import most common subpackages
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,8 @@
         python_requires=">=3.6",
         author="Facebook AI Research",
         author_email="todo@fb.com",
+        long_description="FairScale is a PyTorch extension library for high performance and large scale training on one or multiple machines/nodes. This library extends basic PyTorch capabilities while adding new experimental ones.",
+        long_description_content_type="text/markdown",
         classifiers=[
             "Programming Language :: Python :: 3.6",
             "Programming Language :: Python :: 3.7",

{"golden_diff": "diff --git a/fairscale/__init__.py b/fairscale/__init__.py\n--- a/fairscale/__init__.py\n+++ b/fairscale/__init__.py\n@@ -3,7 +3,7 @@\n # This source code is licensed under the BSD license found in the\n # LICENSE file in the root directory of this source tree.\n \n-__version__ = \"0.1.3\"\n+__version__ = \"0.1.4\"\n \n ################################################################################\n # Import most common subpackages\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -65,6 +65,8 @@\n         python_requires=\">=3.6\",\n         author=\"Facebook AI Research\",\n         author_email=\"todo@fb.com\",\n+        long_description=\"FairScale is a PyTorch extension library for high performance and large scale training on one or multiple machines/nodes. This library extends basic PyTorch capabilities while adding new experimental ones.\",\n+        long_description_content_type=\"text/markdown\",\n         classifiers=[\n             \"Programming Language :: Python :: 3.6\",\n             \"Programming Language :: Python :: 3.7\",\n", "issue": "[bug] pip package 0.1.3 fails to install\nBoth `python3.8 -m pip install fairscale --verbose` and `python3.8 -m pip install fairscale --no-build-isolation --verbose` trigger\r\n\r\n```\r\nninja: error: '/tmp/pip-install-zqe21k7a/fairscale_4066f1fa225242299ead5fd852fd2ce8/fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp', needed by '/t\r\nmp/pip-install-zqe21k7a/fairscale_4066f1fa225242299ead5fd852fd2ce8/build/temp.linux-x86_64-3.8/fairscale/clib/fused_adam_cuda/fused_adam_cuda.o', missin\r\ng and no known rule to make it\r\n```\r\n\r\nCloning the repository and running `python3.8 -m pip install . --verbose` from within the directory works fine.\n", "before_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n__version__ = \"0.1.3\"\n\n################################################################################\n# Import most common subpackages\n################################################################################\n\nfrom . import nn\n", "path": "fairscale/__init__.py"}, {"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n\nimport os\nimport re\nimport warnings\n\nimport setuptools\nimport torch\nfrom torch.utils.cpp_extension import CUDA_HOME, BuildExtension, CUDAExtension\n\nthis_dir = os.path.dirname(os.path.abspath(__file__))\n\n\ndef fetch_requirements():\n    with open(\"requirements.txt\") as f:\n        reqs = f.read().strip().split(\"\\n\")\n    return reqs\n\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\ndef find_version(version_file_path):\n    with open(version_file_path) as version_file:\n        version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n        if version_match:\n            return version_match.group(1)\n        raise RuntimeError(\"Unable to find version string.\")\n\n\nextensions = []\ncmdclass = {}\n\nforce_cuda = os.getenv(\"FORCE_CUDA\", \"0\") == \"1\"\nif (torch.cuda.is_available() and CUDA_HOME is not None) or force_cuda:\n    extensions.extend(\n        [\n            CUDAExtension(\n                name=\"fairscale.fused_adam_cuda\",\n                include_dirs=[os.path.join(this_dir, \"fairscale/clib/fused_adam_cuda\")],\n                sources=[\n                    \"fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp\",\n                    \"fairscale/clib/fused_adam_cuda/fused_adam_cuda_kernel.cu\",\n                ],\n                extra_compile_args={\"cxx\": [\"-O3\"], \"nvcc\": [\"-O3\", \"--use_fast_math\"]},\n            )\n        ]\n    )\n\n    cmdclass[\"build_ext\"] = BuildExtension\nelse:\n    warnings.warn(\"Cannot install FusedAdam cuda.\")\n\n\nif __name__ == \"__main__\":\n    setuptools.setup(\n        name=\"fairscale\",\n        description=\"fairscale: A PyTorch library for large-scale and high-performance training.\",\n        version=find_version(\"fairscale/__init__.py\"),\n        install_requires=fetch_requirements(),\n        include_package_data=True,\n        packages=setuptools.find_packages(exclude=(\"tests\", \"tests.*\")),\n        ext_modules=extensions,\n        cmdclass=cmdclass,\n        python_requires=\">=3.6\",\n        author=\"Facebook AI Research\",\n        author_email=\"todo@fb.com\",\n        classifiers=[\n            \"Programming Language :: Python :: 3.6\",\n            \"Programming Language :: Python :: 3.7\",\n            \"Programming Language :: Python :: 3.8\",\n            \"License :: OSI Approved :: BSD License\",\n            \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n            \"Operating System :: OS Independent\",\n        ],\n    )\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\n__version__ = \"0.1.4\"\n\n################################################################################\n# Import most common subpackages\n################################################################################\n\nfrom . import nn\n", "path": "fairscale/__init__.py"}, {"content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n\nimport os\nimport re\nimport warnings\n\nimport setuptools\nimport torch\nfrom torch.utils.cpp_extension import CUDA_HOME, BuildExtension, CUDAExtension\n\nthis_dir = os.path.dirname(os.path.abspath(__file__))\n\n\ndef fetch_requirements():\n    with open(\"requirements.txt\") as f:\n        reqs = f.read().strip().split(\"\\n\")\n    return reqs\n\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\ndef find_version(version_file_path):\n    with open(version_file_path) as version_file:\n        version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file.read(), re.M)\n        if version_match:\n            return version_match.group(1)\n        raise RuntimeError(\"Unable to find version string.\")\n\n\nextensions = []\ncmdclass = {}\n\nforce_cuda = os.getenv(\"FORCE_CUDA\", \"0\") == \"1\"\nif (torch.cuda.is_available() and CUDA_HOME is not None) or force_cuda:\n    extensions.extend(\n        [\n            CUDAExtension(\n                name=\"fairscale.fused_adam_cuda\",\n                include_dirs=[os.path.join(this_dir, \"fairscale/clib/fused_adam_cuda\")],\n                sources=[\n                    \"fairscale/clib/fused_adam_cuda/fused_adam_cuda.cpp\",\n                    \"fairscale/clib/fused_adam_cuda/fused_adam_cuda_kernel.cu\",\n                ],\n                extra_compile_args={\"cxx\": [\"-O3\"], \"nvcc\": [\"-O3\", \"--use_fast_math\"]},\n            )\n        ]\n    )\n\n    cmdclass[\"build_ext\"] = BuildExtension\nelse:\n    warnings.warn(\"Cannot install FusedAdam cuda.\")\n\n\nif __name__ == \"__main__\":\n    setuptools.setup(\n        name=\"fairscale\",\n        description=\"fairscale: A PyTorch library for large-scale and high-performance training.\",\n        version=find_version(\"fairscale/__init__.py\"),\n        install_requires=fetch_requirements(),\n        include_package_data=True,\n        packages=setuptools.find_packages(exclude=(\"tests\", \"tests.*\")),\n        ext_modules=extensions,\n        cmdclass=cmdclass,\n        python_requires=\">=3.6\",\n        author=\"Facebook AI Research\",\n        author_email=\"todo@fb.com\",\n        long_description=\"FairScale is a PyTorch extension library for high performance and large scale training on one or multiple machines/nodes. This library extends basic PyTorch capabilities while adding new experimental ones.\",\n        long_description_content_type=\"text/markdown\",\n        classifiers=[\n            \"Programming Language :: Python :: 3.6\",\n            \"Programming Language :: Python :: 3.7\",\n            \"Programming Language :: Python :: 3.8\",\n            \"License :: OSI Approved :: BSD License\",\n            \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n            \"Operating System :: OS Independent\",\n        ],\n    )\n", "path": "setup.py"}]}