prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Can we keep a mturk task from outside parlai/mturk/tasks?
  Hi @JackUrb, I have a few questions regarding the mturk evaluation:
  
  1. This link (http://parl.ai/static/docs/mturk.html#running-a-task) says that 
  
  > to run an MTurk task, first ensure that the task directory is in `parlai/mturk/tasks/`. 
  
   Is it by design? I tried to keep my task in some other directory (outside root parlai directory) and tried to import parlai as a package but that doesn't seem to work. Basically I am trying to use ParlAI as one of the dependency for one of my project for Human In the loop evaluation.
  
  2. How easy/hard it is to provide support for keeping the mturk task anywhere?
  
  
  --- 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 # Copyright (c) 2017-present, Facebook, Inc.
  2 # All rights reserved.
  3 # This source code is licensed under the BSD-style license found in the
  4 # LICENSE file in the root directory of this source tree. An additional grant
  5 # of patent rights can be found in the PATENTS file in the same directory.
  6 
  7 
  8 from setuptools import setup, find_packages
  9 import sys
  10 
  11 if sys.version_info < (3,):
  12     sys.exit('Sorry, Python3 is required for ParlAI.')
  13 
  14 with open('README.md', encoding="utf8") as f:
  15     readme = f.read()
  16 
  17 with open('LICENSE') as f:
  18     license = f.read()
  19 
  20 with open('requirements.txt') as f:
  21     reqs = f.read()
  22 
  23 setup(
  24     name='parlai',
  25     version='0.1.0',
  26     description='Unified API for accessing dialog datasets.',
  27     long_description=readme,
  28     url='http://parl.ai/',
  29     license=license,
  30     packages=find_packages(exclude=(
  31         'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),
  32     install_requires=reqs.strip().split('\n'),
  33 )
  34
  ```
  --- 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
  @@ -30,4 +30,5 @@
       packages=find_packages(exclude=(
           'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),
       install_requires=reqs.strip().split('\n'),
  +    include_package_data=True,
   )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -30,4 +30,5 @@\n     packages=find_packages(exclude=(\n         'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),\n     install_requires=reqs.strip().split('\\n'),\n+    include_package_data=True,\n )\n", "issue": "Can we keep a mturk task from outside parlai/mturk/tasks?\nHi @JackUrb, I have a few questions regarding the mturk evaluation:\r\n\r\n1. This link (http://parl.ai/static/docs/mturk.html#running-a-task) says that \r\n\r\n> to run an MTurk task, first ensure that the task directory is in `parlai/mturk/tasks/`. \r\n\r\n Is it by design? I tried to keep my task in some other directory (outside root parlai directory) and tried to import parlai as a package but that doesn't seem to work. Basically I am trying to use ParlAI as one of the dependency for one of my project for Human In the loop evaluation.\r\n\r\n2. How easy/hard it is to provide support for keeping the mturk task anywhere?\r\n\n", "before_files": [{"content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n\n\nfrom setuptools import setup, find_packages\nimport sys\n\nif sys.version_info < (3,):\n    sys.exit('Sorry, Python3 is required for ParlAI.')\n\nwith open('README.md', encoding=\"utf8\") as f:\n    readme = f.read()\n\nwith open('LICENSE') as f:\n    license = f.read()\n\nwith open('requirements.txt') as f:\n    reqs = f.read()\n\nsetup(\n    name='parlai',\n    version='0.1.0',\n    description='Unified API for accessing dialog datasets.',\n    long_description=readme,\n    url='http://parl.ai/',\n    license=license,\n    packages=find_packages(exclude=(\n        'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),\n    install_requires=reqs.strip().split('\\n'),\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n\n\nfrom setuptools import setup, find_packages\nimport sys\n\nif sys.version_info < (3,):\n    sys.exit('Sorry, Python3 is required for ParlAI.')\n\nwith open('README.md', encoding=\"utf8\") as f:\n    readme = f.read()\n\nwith open('LICENSE') as f:\n    license = f.read()\n\nwith open('requirements.txt') as f:\n    reqs = f.read()\n\nsetup(\n    name='parlai',\n    version='0.1.0',\n    description='Unified API for accessing dialog datasets.',\n    long_description=readme,\n    url='http://parl.ai/',\n    license=license,\n    packages=find_packages(exclude=(\n        'data', 'docs', 'downloads', 'examples', 'logs', 'tests')),\n    install_requires=reqs.strip().split('\\n'),\n    include_package_data=True,\n)\n", "path": "setup.py"}]}