We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Investigate build process on Windows
The package build seems to be failing on Windows, apparently once again due to some hard-coded path.

Context is in #75 

--- 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 # Standard library imports
2 import distutils.cmd
3 import distutils.log
4 import itertools
5 import logging
6 import subprocess
7 import sys
8 from pathlib import Path
9 from textwrap import dedent
10 
11 # Third-party imports
12 from setuptools import find_namespace_packages, setup
13 
14 ROOT = Path(__file__).parent
15 SRC = ROOT / "src"
16 
17 
18 GPU_SUPPORT = 0 == int(
19     subprocess.call(
20         "nvidia-smi",
21         shell=True,
22         stdout=open("/dev/null", "w"),
23         stderr=open("/dev/null", "w"),
24     )
25 )
26 
27 try:
28     from sphinx import apidoc, setup_command
29 
30     HAS_SPHINX = True
31 except ImportError:
32 
33     logging.warning(
34         "Package 'sphinx' not found. You will not be able to build the docs."
35     )
36 
37     HAS_SPHINX = False
38 
39 
40 def read(*names, encoding="utf8"):
41     with (ROOT / Path(*names)).open(encoding=encoding) as fp:
42         return fp.read()
43 
44 
45 def find_requirements(filename):
46     with (ROOT / "requirements" / filename).open() as f:
47         mxnet_old = "mxnet"
48         mxnet_new = "mxnet-cu92mkl" if GPU_SUPPORT else mxnet_old
49         return [
50             line.rstrip().replace(mxnet_old, mxnet_new, 1)
51             for line in f
52             if not (line.startswith("#") or line.startswith("http"))
53         ]
54 
55 
56 class TypeCheckCommand(distutils.cmd.Command):
57     """A custom command to run MyPy on the project sources."""
58 
59     description = "run MyPy on Python source files"
60     user_options = []
61 
62     def initialize_options(self):
63         pass
64 
65     def finalize_options(self):
66         pass
67 
68     def run(self):
69         """Run command."""
70 
71         # import here (after the setup_requires list is loaded),
72         # otherwise a module-not-found error is thrown
73         import mypy.api
74 
75         mypy_opts = ["--follow-imports=silent", "--ignore-missing-imports"]
76         mypy_args = [str(p.parent.resolve()) for p in SRC.glob("**/.typesafe")]
77 
78         print(
79             "the following folders contain a `.typesafe` marker file "
80             "and will be type-checked with `mypy`:"
81         )
82         print("\n".join(["  " + arg for arg in mypy_args]))
83 
84         std_out, std_err, exit_code = mypy.api.run(mypy_opts + mypy_args)
85 
86         print(std_out, file=sys.stdout)
87         print(std_err, file=sys.stderr)
88 
89         if exit_code:
90             error_msg = dedent(
91                 f"""
92                 Mypy command
93 
94                     mypy {" ".join(mypy_opts + mypy_args)}
95 
96                 returned a non-zero exit code. Fix the type errors listed above
97                 and then run
98 
99                     python setup.py type_check
100 
101                 in order to validate your fixes.
102                 """
103             ).lstrip()
104 
105             print(error_msg, file=sys.stderr)
106             sys.exit(exit_code)
107 
108 
109 class StyleCheckCommand(distutils.cmd.Command):
110     """A custom command to run MyPy on the project sources."""
111 
112     description = "run Black style check on Python source files"
113     user_options = []
114 
115     def initialize_options(self):
116         pass
117 
118     def finalize_options(self):
119         pass
120 
121     def run(self):
122         """Run command."""
123 
124         # import here (after the setup_requires list is loaded),
125         # otherwise a module-not-found error is thrown
126         import click
127         import black
128 
129         black_opts = []
130         black_args = [
131             str(ROOT / folder)
132             for folder in ["src", "test", "examples"]
133             if (ROOT / folder).is_dir()
134         ]
135 
136         print(
137             "Python files in the following folders will be style-checked "
138             "with `black`:"
139         )
140         print("\n".join(["  " + arg for arg in black_args]))
141 
142         # a more direct way to call black
143         # this bypasses the problematic `_verify_python3_env` call in
144         # `click.BaseCommand.main`, which brakes things on Brazil builds
145         ctx = black.main.make_context(
146             info_name="black", args=["--check"] + black_opts + black_args
147         )
148         try:
149             exit_code = black.main.invoke(ctx)
150         except SystemExit as e:
151             exit_code = e.code
152         except click.exceptions.Exit as e:
153             exit_code = e.exit_code
154 
155         if exit_code:
156             error_msg = dedent(
157                 f"""
158                 Black command
159 
160                     black {" ".join(['--check'] + black_opts + black_args)}
161 
162                 returned a non-zero exit code. Fix the files listed above with
163 
164                     black {" ".join(black_opts + black_args)}
165 
166                 and then run
167 
168                     python setup.py style_check
169 
170                 in order to validate your fixes.
171                 """
172             ).lstrip()
173 
174             print(error_msg, file=sys.stderr)
175             sys.exit(exit_code)
176 
177 
178 tests_require = find_requirements("requirements-test.txt")
179 shell_require = find_requirements("requirements-extras-shell.txt")
180 setup_requires = find_requirements(
181     "requirements-setup.txt"
182 ) + find_requirements("requirements-docs.txt")
183 
184 setup_kwargs: dict = dict(
185     name="gluonts",
186     use_scm_version={"fallback_version": "0.0.0"},
187     description=(
188         "GluonTS is a Python toolkit for probabilistic time series modeling, "
189         "built around MXNet."
190     ),
191     long_description=read("README.md"),
192     long_description_content_type="text/markdown",
193     url="https://github.com/awslabs/gluon-ts",
194     author="Amazon",
195     author_email="gluon-ts-dev@amazon.com",
196     maintainer_email="gluon-ts-dev@amazon.com",
197     license="Apache License 2.0",
198     python_requires=">= 3.6",
199     package_dir={"": "src"},
200     packages=find_namespace_packages(include=["gluonts*"], where=str(SRC)),
201     include_package_data=True,
202     setup_requires=setup_requires,
203     install_requires=find_requirements("requirements.txt"),
204     tests_require=tests_require,
205     extras_require={
206         "dev": tests_require + shell_require + setup_requires,
207         "R": find_requirements("requirements-extras-r.txt"),
208         "Prophet": find_requirements("requirements-extras-prophet.txt"),
209         "shell": shell_require,
210     },
211     entry_points=dict(
212         gluonts_forecasters=[
213             "deepar=gluonts.model.deepar:DeepAREstimator",
214             "r=gluonts.model.r_forecast:RForecastPredictor [R]",
215             "prophet=gluonts.model.prophet:ProphetPredictor [Prophet]",
216         ],
217     ),
218     cmdclass={
219         "type_check": TypeCheckCommand,
220         "style_check": StyleCheckCommand,
221     },
222 )
223 
224 if HAS_SPHINX:
225 
226     class BuildApiDoc(setup_command.BuildDoc):
227         def run(self):
228             args = list(
229                 itertools.chain(
230                     ["-f"],  # force re-generation
231                     ["-P"],  # include private modules
232                     ["--implicit-namespaces"],  # respect PEP420
233                     ["-o", str(ROOT / "docs" / "api" / "gluonts")],  # out path
234                     [str(SRC / "gluonts")],  # in path
235                     ["setup*", "test", "docs", "*pycache*"],  # excluded paths
236                 )
237             )
238             apidoc.main(args)
239             super(BuildApiDoc, self).run()
240 
241     for command in ["build_sphinx", "doc", "docs"]:
242         setup_kwargs["cmdclass"][command] = BuildApiDoc
243 
244 # -----------------------------------------------------------------------------
245 # start of AWS-internal section (DO NOT MODIFY THIS SECTION)!
246 #
247 # all AWS-internal configuration goes here
248 #
249 # end of AWS-internal section (DO NOT MODIFY THIS SECTION)!
250 # -----------------------------------------------------------------------------
251 
252 # do the work
253 setup(**setup_kwargs)
254
```
--- 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
@@ -3,6 +3,7 @@
 import distutils.log
 import itertools
 import logging
+import os
 import subprocess
 import sys
 from pathlib import Path
@@ -19,8 +20,8 @@
     subprocess.call(
         "nvidia-smi",
         shell=True,
-        stdout=open("/dev/null", "w"),
-        stderr=open("/dev/null", "w"),
+        stdout=open(os.devnull, "w"),
+        stderr=open(os.devnull, "w"),
     )
 )

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -3,6 +3,7 @@\n import distutils.log\n import itertools\n import logging\n+import os\n import subprocess\n import sys\n from pathlib import Path\n@@ -19,8 +20,8 @@\n     subprocess.call(\n         \"nvidia-smi\",\n         shell=True,\n-        stdout=open(\"/dev/null\", \"w\"),\n-        stderr=open(\"/dev/null\", \"w\"),\n+        stdout=open(os.devnull, \"w\"),\n+        stderr=open(os.devnull, \"w\"),\n     )\n )\n", "issue": "Investigate build process on Windows\nThe package build seems to be failing on Windows, apparently once again due to some hard-coded path.\r\n\r\nContext is in #75 \n", "before_files": [{"content": "# Standard library imports\nimport distutils.cmd\nimport distutils.log\nimport itertools\nimport logging\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom textwrap import dedent\n\n# Third-party imports\nfrom setuptools import find_namespace_packages, setup\n\nROOT = Path(__file__).parent\nSRC = ROOT / \"src\"\n\n\nGPU_SUPPORT = 0 == int(\n    subprocess.call(\n        \"nvidia-smi\",\n        shell=True,\n        stdout=open(\"/dev/null\", \"w\"),\n        stderr=open(\"/dev/null\", \"w\"),\n    )\n)\n\ntry:\n    from sphinx import apidoc, setup_command\n\n    HAS_SPHINX = True\nexcept ImportError:\n\n    logging.warning(\n        \"Package 'sphinx' not found. You will not be able to build the docs.\"\n    )\n\n    HAS_SPHINX = False\n\n\ndef read(*names, encoding=\"utf8\"):\n    with (ROOT / Path(*names)).open(encoding=encoding) as fp:\n        return fp.read()\n\n\ndef find_requirements(filename):\n    with (ROOT / \"requirements\" / filename).open() as f:\n        mxnet_old = \"mxnet\"\n        mxnet_new = \"mxnet-cu92mkl\" if GPU_SUPPORT else mxnet_old\n        return [\n            line.rstrip().replace(mxnet_old, mxnet_new, 1)\n            for line in f\n            if not (line.startswith(\"#\") or line.startswith(\"http\"))\n        ]\n\n\nclass TypeCheckCommand(distutils.cmd.Command):\n    \"\"\"A custom command to run MyPy on the project sources.\"\"\"\n\n    description = \"run MyPy on Python source files\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    def run(self):\n        \"\"\"Run command.\"\"\"\n\n        # import here (after the setup_requires list is loaded),\n        # otherwise a module-not-found error is thrown\n        import mypy.api\n\n        mypy_opts = [\"--follow-imports=silent\", \"--ignore-missing-imports\"]\n        mypy_args = [str(p.parent.resolve()) for p in SRC.glob(\"**/.typesafe\")]\n\n        print(\n            \"the following folders contain a `.typesafe` marker file \"\n            \"and will be type-checked with `mypy`:\"\n        )\n        print(\"\\n\".join([\"  \" + arg for arg in mypy_args]))\n\n        std_out, std_err, exit_code = mypy.api.run(mypy_opts + mypy_args)\n\n        print(std_out, file=sys.stdout)\n        print(std_err, file=sys.stderr)\n\n        if exit_code:\n            error_msg = dedent(\n                f\"\"\"\n                Mypy command\n\n                    mypy {\" \".join(mypy_opts + mypy_args)}\n\n                returned a non-zero exit code. Fix the type errors listed above\n                and then run\n\n                    python setup.py type_check\n\n                in order to validate your fixes.\n                \"\"\"\n            ).lstrip()\n\n            print(error_msg, file=sys.stderr)\n            sys.exit(exit_code)\n\n\nclass StyleCheckCommand(distutils.cmd.Command):\n    \"\"\"A custom command to run MyPy on the project sources.\"\"\"\n\n    description = \"run Black style check on Python source files\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    def run(self):\n        \"\"\"Run command.\"\"\"\n\n        # import here (after the setup_requires list is loaded),\n        # otherwise a module-not-found error is thrown\n        import click\n        import black\n\n        black_opts = []\n        black_args = [\n            str(ROOT / folder)\n            for folder in [\"src\", \"test\", \"examples\"]\n            if (ROOT / folder).is_dir()\n        ]\n\n        print(\n            \"Python files in the following folders will be style-checked \"\n            \"with `black`:\"\n        )\n        print(\"\\n\".join([\"  \" + arg for arg in black_args]))\n\n        # a more direct way to call black\n        # this bypasses the problematic `_verify_python3_env` call in\n        # `click.BaseCommand.main`, which brakes things on Brazil builds\n        ctx = black.main.make_context(\n            info_name=\"black\", args=[\"--check\"] + black_opts + black_args\n        )\n        try:\n            exit_code = black.main.invoke(ctx)\n        except SystemExit as e:\n            exit_code = e.code\n        except click.exceptions.Exit as e:\n            exit_code = e.exit_code\n\n        if exit_code:\n            error_msg = dedent(\n                f\"\"\"\n                Black command\n\n                    black {\" \".join(['--check'] + black_opts + black_args)}\n\n                returned a non-zero exit code. Fix the files listed above with\n\n                    black {\" \".join(black_opts + black_args)}\n\n                and then run\n\n                    python setup.py style_check\n\n                in order to validate your fixes.\n                \"\"\"\n            ).lstrip()\n\n            print(error_msg, file=sys.stderr)\n            sys.exit(exit_code)\n\n\ntests_require = find_requirements(\"requirements-test.txt\")\nshell_require = find_requirements(\"requirements-extras-shell.txt\")\nsetup_requires = find_requirements(\n    \"requirements-setup.txt\"\n) + find_requirements(\"requirements-docs.txt\")\n\nsetup_kwargs: dict = dict(\n    name=\"gluonts\",\n    use_scm_version={\"fallback_version\": \"0.0.0\"},\n    description=(\n        \"GluonTS is a Python toolkit for probabilistic time series modeling, \"\n        \"built around MXNet.\"\n    ),\n    long_description=read(\"README.md\"),\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/awslabs/gluon-ts\",\n    author=\"Amazon\",\n    author_email=\"gluon-ts-dev@amazon.com\",\n    maintainer_email=\"gluon-ts-dev@amazon.com\",\n    license=\"Apache License 2.0\",\n    python_requires=\">= 3.6\",\n    package_dir={\"\": \"src\"},\n    packages=find_namespace_packages(include=[\"gluonts*\"], where=str(SRC)),\n    include_package_data=True,\n    setup_requires=setup_requires,\n    install_requires=find_requirements(\"requirements.txt\"),\n    tests_require=tests_require,\n    extras_require={\n        \"dev\": tests_require + shell_require + setup_requires,\n        \"R\": find_requirements(\"requirements-extras-r.txt\"),\n        \"Prophet\": find_requirements(\"requirements-extras-prophet.txt\"),\n        \"shell\": shell_require,\n    },\n    entry_points=dict(\n        gluonts_forecasters=[\n            \"deepar=gluonts.model.deepar:DeepAREstimator\",\n            \"r=gluonts.model.r_forecast:RForecastPredictor [R]\",\n            \"prophet=gluonts.model.prophet:ProphetPredictor [Prophet]\",\n        ],\n    ),\n    cmdclass={\n        \"type_check\": TypeCheckCommand,\n        \"style_check\": StyleCheckCommand,\n    },\n)\n\nif HAS_SPHINX:\n\n    class BuildApiDoc(setup_command.BuildDoc):\n        def run(self):\n            args = list(\n                itertools.chain(\n                    [\"-f\"],  # force re-generation\n                    [\"-P\"],  # include private modules\n                    [\"--implicit-namespaces\"],  # respect PEP420\n                    [\"-o\", str(ROOT / \"docs\" / \"api\" / \"gluonts\")],  # out path\n                    [str(SRC / \"gluonts\")],  # in path\n                    [\"setup*\", \"test\", \"docs\", \"*pycache*\"],  # excluded paths\n                )\n            )\n            apidoc.main(args)\n            super(BuildApiDoc, self).run()\n\n    for command in [\"build_sphinx\", \"doc\", \"docs\"]:\n        setup_kwargs[\"cmdclass\"][command] = BuildApiDoc\n\n# -----------------------------------------------------------------------------\n# start of AWS-internal section (DO NOT MODIFY THIS SECTION)!\n#\n# all AWS-internal configuration goes here\n#\n# end of AWS-internal section (DO NOT MODIFY THIS SECTION)!\n# -----------------------------------------------------------------------------\n\n# do the work\nsetup(**setup_kwargs)\n", "path": "setup.py"}], "after_files": [{"content": "# Standard library imports\nimport distutils.cmd\nimport distutils.log\nimport itertools\nimport logging\nimport os\nimport subprocess\nimport sys\nfrom pathlib import Path\nfrom textwrap import dedent\n\n# Third-party imports\nfrom setuptools import find_namespace_packages, setup\n\nROOT = Path(__file__).parent\nSRC = ROOT / \"src\"\n\n\nGPU_SUPPORT = 0 == int(\n    subprocess.call(\n        \"nvidia-smi\",\n        shell=True,\n        stdout=open(os.devnull, \"w\"),\n        stderr=open(os.devnull, \"w\"),\n    )\n)\n\ntry:\n    from sphinx import apidoc, setup_command\n\n    HAS_SPHINX = True\nexcept ImportError:\n\n    logging.warning(\n        \"Package 'sphinx' not found. You will not be able to build the docs.\"\n    )\n\n    HAS_SPHINX = False\n\n\ndef read(*names, encoding=\"utf8\"):\n    with (ROOT / Path(*names)).open(encoding=encoding) as fp:\n        return fp.read()\n\n\ndef find_requirements(filename):\n    with (ROOT / \"requirements\" / filename).open() as f:\n        mxnet_old = \"mxnet\"\n        mxnet_new = \"mxnet-cu92mkl\" if GPU_SUPPORT else mxnet_old\n        return [\n            line.rstrip().replace(mxnet_old, mxnet_new, 1)\n            for line in f\n            if not (line.startswith(\"#\") or line.startswith(\"http\"))\n        ]\n\n\nclass TypeCheckCommand(distutils.cmd.Command):\n    \"\"\"A custom command to run MyPy on the project sources.\"\"\"\n\n    description = \"run MyPy on Python source files\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    def run(self):\n        \"\"\"Run command.\"\"\"\n\n        # import here (after the setup_requires list is loaded),\n        # otherwise a module-not-found error is thrown\n        import mypy.api\n\n        mypy_opts = [\"--follow-imports=silent\", \"--ignore-missing-imports\"]\n        mypy_args = [str(p.parent.resolve()) for p in SRC.glob(\"**/.typesafe\")]\n\n        print(\n            \"the following folders contain a `.typesafe` marker file \"\n            \"and will be type-checked with `mypy`:\"\n        )\n        print(\"\\n\".join([\"  \" + arg for arg in mypy_args]))\n\n        std_out, std_err, exit_code = mypy.api.run(mypy_opts + mypy_args)\n\n        print(std_out, file=sys.stdout)\n        print(std_err, file=sys.stderr)\n\n        if exit_code:\n            error_msg = dedent(\n                f\"\"\"\n                Mypy command\n\n                    mypy {\" \".join(mypy_opts + mypy_args)}\n\n                returned a non-zero exit code. Fix the type errors listed above\n                and then run\n\n                    python setup.py type_check\n\n                in order to validate your fixes.\n                \"\"\"\n            ).lstrip()\n\n            print(error_msg, file=sys.stderr)\n            sys.exit(exit_code)\n\n\nclass StyleCheckCommand(distutils.cmd.Command):\n    \"\"\"A custom command to run MyPy on the project sources.\"\"\"\n\n    description = \"run Black style check on Python source files\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    def run(self):\n        \"\"\"Run command.\"\"\"\n\n        # import here (after the setup_requires list is loaded),\n        # otherwise a module-not-found error is thrown\n        import click\n        import black\n\n        black_opts = []\n        black_args = [\n            str(ROOT / folder)\n            for folder in [\"src\", \"test\", \"examples\"]\n            if (ROOT / folder).is_dir()\n        ]\n\n        print(\n            \"Python files in the following folders will be style-checked \"\n            \"with `black`:\"\n        )\n        print(\"\\n\".join([\"  \" + arg for arg in black_args]))\n\n        # a more direct way to call black\n        # this bypasses the problematic `_verify_python3_env` call in\n        # `click.BaseCommand.main`, which brakes things on Brazil builds\n        ctx = black.main.make_context(\n            info_name=\"black\", args=[\"--check\"] + black_opts + black_args\n        )\n        try:\n            exit_code = black.main.invoke(ctx)\n        except SystemExit as e:\n            exit_code = e.code\n        except click.exceptions.Exit as e:\n            exit_code = e.exit_code\n\n        if exit_code:\n            error_msg = dedent(\n                f\"\"\"\n                Black command\n\n                    black {\" \".join(['--check'] + black_opts + black_args)}\n\n                returned a non-zero exit code. Fix the files listed above with\n\n                    black {\" \".join(black_opts + black_args)}\n\n                and then run\n\n                    python setup.py style_check\n\n                in order to validate your fixes.\n                \"\"\"\n            ).lstrip()\n\n            print(error_msg, file=sys.stderr)\n            sys.exit(exit_code)\n\n\ntests_require = find_requirements(\"requirements-test.txt\")\nshell_require = find_requirements(\"requirements-extras-shell.txt\")\nsetup_requires = find_requirements(\n    \"requirements-setup.txt\"\n) + find_requirements(\"requirements-docs.txt\")\n\nsetup_kwargs: dict = dict(\n    name=\"gluonts\",\n    use_scm_version={\"fallback_version\": \"0.0.0\"},\n    description=(\n        \"GluonTS is a Python toolkit for probabilistic time series modeling, \"\n        \"built around MXNet.\"\n    ),\n    long_description=read(\"README.md\"),\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/awslabs/gluon-ts\",\n    author=\"Amazon\",\n    author_email=\"gluon-ts-dev@amazon.com\",\n    maintainer_email=\"gluon-ts-dev@amazon.com\",\n    license=\"Apache License 2.0\",\n    python_requires=\">= 3.6\",\n    package_dir={\"\": \"src\"},\n    packages=find_namespace_packages(include=[\"gluonts*\"], where=str(SRC)),\n    include_package_data=True,\n    setup_requires=setup_requires,\n    install_requires=find_requirements(\"requirements.txt\"),\n    tests_require=tests_require,\n    extras_require={\n        \"dev\": tests_require + shell_require + setup_requires,\n        \"R\": find_requirements(\"requirements-extras-r.txt\"),\n        \"Prophet\": find_requirements(\"requirements-extras-prophet.txt\"),\n        \"shell\": shell_require,\n    },\n    entry_points=dict(\n        gluonts_forecasters=[\n            \"deepar=gluonts.model.deepar:DeepAREstimator\",\n            \"r=gluonts.model.r_forecast:RForecastPredictor [R]\",\n            \"prophet=gluonts.model.prophet:ProphetPredictor [Prophet]\",\n        ],\n    ),\n    cmdclass={\n        \"type_check\": TypeCheckCommand,\n        \"style_check\": StyleCheckCommand,\n    },\n)\n\nif HAS_SPHINX:\n\n    class BuildApiDoc(setup_command.BuildDoc):\n        def run(self):\n            args = list(\n                itertools.chain(\n                    [\"-f\"],  # force re-generation\n                    [\"-P\"],  # include private modules\n                    [\"--implicit-namespaces\"],  # respect PEP420\n                    [\"-o\", str(ROOT / \"docs\" / \"api\" / \"gluonts\")],  # out path\n                    [str(SRC / \"gluonts\")],  # in path\n                    [\"setup*\", \"test\", \"docs\", \"*pycache*\"],  # excluded paths\n                )\n            )\n            apidoc.main(args)\n            super(BuildApiDoc, self).run()\n\n    for command in [\"build_sphinx\", \"doc\", \"docs\"]:\n        setup_kwargs[\"cmdclass\"][command] = BuildApiDoc\n\n# -----------------------------------------------------------------------------\n# start of AWS-internal section (DO NOT MODIFY THIS SECTION)!\n#\n# all AWS-internal configuration goes here\n#\n# end of AWS-internal section (DO NOT MODIFY THIS SECTION)!\n# -----------------------------------------------------------------------------\n\n# do the work\nsetup(**setup_kwargs)\n", "path": "setup.py"}]}