prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  python -m pip install -U . doesn't work.
  It ought to be possible to install pytype using pip by running
  
  ```
  python -m pip install -U .
  ```
  
  but doing so causes an error message.
  
  
  --- 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 # pylint: disable=bad-indentation
  4 
  5 from distutils.core import setup
  6 
  7 import glob
  8 import os
  9 
  10 
  11 def scan_package_data(path, pattern):
  12     result = []
  13     for subdir, _, _ in os.walk(path):
  14         full_pattern = os.path.join(subdir, pattern)
  15         if glob.glob(full_pattern):
  16           # Once we know that it matches files, we store the pattern itself.
  17           result.append(full_pattern)
  18     return result
  19 
  20 
  21 typeshed = scan_package_data('typeshed', '*.pyi')
  22 assert 'typeshed/stdlib/2.7/*.pyi' in typeshed
  23 
  24 
  25 setup(
  26     name='pytype',
  27     version='0.2',
  28     description='Python type inferencer',
  29     maintainer='Google',
  30     maintainer_email='pytypedecl-dev@googlegroups.com',
  31     url='http://github.com/google/pytype',
  32     packages=['pytype',
  33               'pytype/pyc',
  34               'pytype/pytd',
  35               'pytype/pytd/parse',
  36              ],
  37     scripts=['scripts/pytype', 'scripts/pytd'],
  38     package_data={'pytype': ['pytd/builtins/*',
  39                              'pytd/stdlib/*',
  40                             ] + typeshed},
  41     requires=['ply (>=3.4)'],
  42     install_requires=['ply>=3.4'],
  43 )
  44
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -36,7 +36,8 @@
                ],
       scripts=['scripts/pytype', 'scripts/pytd'],
       package_data={'pytype': ['pytd/builtins/*',
  -                             'pytd/stdlib/*',
  +                             'pytd/stdlib/os/*.pytd',
  +                             'pytd/stdlib/*.pytd',
                               ] + typeshed},
       requires=['ply (>=3.4)'],
       install_requires=['ply>=3.4'],
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -36,7 +36,8 @@\n              ],\n     scripts=['scripts/pytype', 'scripts/pytd'],\n     package_data={'pytype': ['pytd/builtins/*',\n-                             'pytd/stdlib/*',\n+                             'pytd/stdlib/os/*.pytd',\n+                             'pytd/stdlib/*.pytd',\n                             ] + typeshed},\n     requires=['ply (>=3.4)'],\n     install_requires=['ply>=3.4'],\n", "issue": "python -m pip install -U . doesn't work.\nIt ought to be possible to install pytype using pip by running\n\n```\npython -m pip install -U .\n```\n\nbut doing so causes an error message.\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\n# pylint: disable=bad-indentation\n\nfrom distutils.core import setup\n\nimport glob\nimport os\n\n\ndef scan_package_data(path, pattern):\n    result = []\n    for subdir, _, _ in os.walk(path):\n        full_pattern = os.path.join(subdir, pattern)\n        if glob.glob(full_pattern):\n          # Once we know that it matches files, we store the pattern itself.\n          result.append(full_pattern)\n    return result\n\n\ntypeshed = scan_package_data('typeshed', '*.pyi')\nassert 'typeshed/stdlib/2.7/*.pyi' in typeshed\n\n\nsetup(\n    name='pytype',\n    version='0.2',\n    description='Python type inferencer',\n    maintainer='Google',\n    maintainer_email='pytypedecl-dev@googlegroups.com',\n    url='http://github.com/google/pytype',\n    packages=['pytype',\n              'pytype/pyc',\n              'pytype/pytd',\n              'pytype/pytd/parse',\n             ],\n    scripts=['scripts/pytype', 'scripts/pytd'],\n    package_data={'pytype': ['pytd/builtins/*',\n                             'pytd/stdlib/*',\n                            ] + typeshed},\n    requires=['ply (>=3.4)'],\n    install_requires=['ply>=3.4'],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\n# pylint: disable=bad-indentation\n\nfrom distutils.core import setup\n\nimport glob\nimport os\n\n\ndef scan_package_data(path, pattern):\n    result = []\n    for subdir, _, _ in os.walk(path):\n        full_pattern = os.path.join(subdir, pattern)\n        if glob.glob(full_pattern):\n          # Once we know that it matches files, we store the pattern itself.\n          result.append(full_pattern)\n    return result\n\n\ntypeshed = scan_package_data('typeshed', '*.pyi')\nassert 'typeshed/stdlib/2.7/*.pyi' in typeshed\n\n\nsetup(\n    name='pytype',\n    version='0.2',\n    description='Python type inferencer',\n    maintainer='Google',\n    maintainer_email='pytypedecl-dev@googlegroups.com',\n    url='http://github.com/google/pytype',\n    packages=['pytype',\n              'pytype/pyc',\n              'pytype/pytd',\n              'pytype/pytd/parse',\n             ],\n    scripts=['scripts/pytype', 'scripts/pytd'],\n    package_data={'pytype': ['pytd/builtins/*',\n                             'pytd/stdlib/os/*.pytd',\n                             'pytd/stdlib/*.pytd',\n                            ] + typeshed},\n    requires=['ply (>=3.4)'],\n    install_requires=['ply>=3.4'],\n)\n", "path": "setup.py"}]}