We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update manylinux builder once Python 3.9 is added
We use a Marketplace GitHub Action to build our manylinux wheels for release. The main branch of this does not yet have Python 3.9 support, but there is a PR waiting for approval that would add it:

https://github.com/RalfG/python-wheels-manylinux-build/pull/33

Once this PR is merged, we will need to update the release workflow.

--- 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 #  ___________________________________________________________________________
2 #
3 #  Pyomo: Python Optimization Modeling Objects
4 #  Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
5 #  Under the terms of Contract DE-NA0003525 with National Technology and
6 #  Engineering Solutions of Sandia, LLC, the U.S. Government retains certain
7 #  rights in this software.
8 #  This software is distributed under the 3-clause BSD License.
9 #  ___________________________________________________________________________
10 
11 """
12 Script to generate the installer for pyomo.
13 """
14 
15 import sys
16 import os
17 
18 def read(*rnames):
19     with open(os.path.join(os.path.dirname(__file__), *rnames)) as README:
20         # Strip all leading badges up to, but not including the COIN-OR
21         # badge so that they do not appear in the PyPI description
22         while True:
23             line = README.readline()
24             if 'COIN-OR' in line:
25                 break
26             if line.strip() and '[![' not in line:
27                 break
28         return line + README.read()
29 
30 def get_version():
31     # Source pyomo/version/info.py to get the version number
32     _verInfo = dict(globals())
33     _verFile = os.path.join(os.path.dirname(__file__),
34                             'pyomo','version','info.py')
35     with open(_verFile) as _FILE:
36         exec(_FILE.read(), _verInfo)
37     return _verInfo['__version__']
38 
39 from setuptools import setup, find_packages
40 
41 CYTHON_REQUIRED = "required"
42 if 'develop' in sys.argv:
43     using_cython = False
44 else:
45     using_cython = "automatic"
46 if '--with-cython' in sys.argv:
47     using_cython = CYTHON_REQUIRED
48     sys.argv.remove('--with-cython')
49 if '--without-cython' in sys.argv:
50     using_cython = False
51     sys.argv.remove('--without-cython')
52 
53 ext_modules = []
54 if using_cython:
55     try:
56         import platform
57         if platform.python_implementation() != "CPython":
58             # break out of this try-except (disable Cython)
59             raise RuntimeError("Cython is only supported under CPython")
60         from Cython.Build import cythonize
61         #
62         # Note: The Cython developers recommend that you destribute C source
63         # files to users.  But this is fine for evaluating the utility of Cython
64         #
65         import shutil
66         files = [
67             "pyomo/core/expr/numvalue.pyx",
68             "pyomo/core/expr/numeric_expr.pyx",
69             "pyomo/core/expr/logical_expr.pyx",
70             #"pyomo/core/expr/visitor.pyx",
71             "pyomo/core/util.pyx",
72             "pyomo/repn/standard_repn.pyx",
73             "pyomo/repn/plugins/cpxlp.pyx",
74             "pyomo/repn/plugins/gams_writer.pyx",
75             "pyomo/repn/plugins/baron_writer.pyx",
76             "pyomo/repn/plugins/ampl/ampl_.pyx",
77         ]
78         for f in files:
79             shutil.copyfile(f[:-1], f)
80         ext_modules = cythonize(files, compiler_directives={
81             "language_level": 3 if sys.version_info >= (3, ) else 2})
82     except:
83         if using_cython == CYTHON_REQUIRED:
84             print("""
85 ERROR: Cython was explicitly requested with --with-cython, but cythonization
86        of core Pyomo modules failed.
87 """)
88             raise
89         using_cython = False
90 
91 def run_setup():
92    setup(name='Pyomo',
93       #
94       # Note: the release number is set in pyomo/version/info.py
95       #
96       version=get_version(),
97       maintainer='Pyomo Developer Team',
98       maintainer_email='pyomo-developers@googlegroups.com',
99       url='http://pyomo.org',
100       license='BSD',
101       platforms=["any"],
102       description='Pyomo: Python Optimization Modeling Objects',
103       long_description=read('README.md'),
104       long_description_content_type='text/markdown',
105       keywords=['optimization'],
106       classifiers=[
107         'Development Status :: 5 - Production/Stable',
108         'Intended Audience :: End Users/Desktop',
109         'Intended Audience :: Science/Research',
110         'License :: OSI Approved :: BSD License',
111         'Natural Language :: English',
112         'Operating System :: MacOS',
113         'Operating System :: Microsoft :: Windows',
114         'Operating System :: Unix',
115         'Programming Language :: Python',
116         'Programming Language :: Python :: 2',
117         'Programming Language :: Python :: 2.7',
118         'Programming Language :: Python :: 3',
119         'Programming Language :: Python :: 3.4',
120         'Programming Language :: Python :: 3.5',
121         'Programming Language :: Python :: 3.6',
122         'Programming Language :: Python :: 3.7',
123         'Programming Language :: Python :: 3.8',
124         'Programming Language :: Python :: 3.9',
125         'Programming Language :: Python :: Implementation :: CPython',
126         'Programming Language :: Python :: Implementation :: Jython',
127         'Programming Language :: Python :: Implementation :: PyPy',
128         'Topic :: Scientific/Engineering :: Mathematics',
129         'Topic :: Software Development :: Libraries :: Python Modules' ],
130       python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
131       install_requires=[
132           'PyUtilib>=6.0.1.dev0',
133           'enum34;python_version<"3.4"',
134           'ply',
135           'six>=1.4',
136       ],
137       packages=find_packages(exclude=("scripts",)),
138       package_data={"pyomo.contrib.viewer":["*.ui"]},
139       ext_modules = ext_modules,
140       entry_points="""
141         [console_scripts]
142         runbenders=pyomo.pysp.benders:Benders_main
143         evaluate_xhat=pyomo.pysp.evaluate_xhat:EvaluateXhat_main
144         runph=pyomo.pysp.phinit:PH_main
145         runef=pyomo.pysp.ef_writer_script:main
146         phsolverserver=pyomo.pysp.phsolverserver:main
147         scenariotreeserver=pyomo.pysp.scenariotree.server_pyro:main
148         computeconf=pyomo.pysp.computeconf:main
149 
150         results_schema=pyomo.scripting.commands:results_schema
151         pyro_mip_server = pyomo.scripting.pyro_mip_server:main
152         test.pyomo = pyomo.scripting.runtests:runPyomoTests
153         pyomo = pyomo.scripting.pyomo_main:main_console_script
154         pyomo_ns = pyomo.scripting.commands:pyomo_ns
155         pyomo_nsc = pyomo.scripting.commands:pyomo_nsc
156         kill_pyro_mip_servers = pyomo.scripting.commands:kill_pyro_mip_servers
157         launch_pyro_mip_servers = pyomo.scripting.commands:launch_pyro_mip_servers
158         readsol = pyomo.scripting.commands:readsol
159         OSSolverService = pyomo.scripting.commands:OSSolverService
160         pyomo_python = pyomo.scripting.commands:pyomo_python
161         pyomo_old=pyomo.scripting.pyomo_command:main
162 
163         [pyomo.command]
164         pyomo.runbenders=pyomo.pysp.benders
165         pyomo.evaluate_xhat=pyomo.pysp.evaluate_xhat
166         pyomo.runph=pyomo.pysp.phinit
167         pyomo.runef=pyomo.pysp.ef_writer_script
168         pyomo.phsolverserver=pyomo.pysp.phsolverserver
169         pyomo.scenariotreeserver=pyomo.pysp.scenariotree.server_pyro
170         pyomo.computeconf=pyomo.pysp.computeconf
171 
172         pyomo.help = pyomo.scripting.driver_help
173         pyomo.test.pyomo = pyomo.scripting.runtests
174         pyomo.pyro_mip_server = pyomo.scripting.pyro_mip_server
175         pyomo.results_schema=pyomo.scripting.commands
176         pyomo.viewer=pyomo.contrib.viewer.pyomo_viewer
177       """
178       )
179 
180 try:
181     run_setup()
182 except SystemExit as e_info:
183     # Cython can generate a SystemExit exception on Windows if the
184     # environment is missing / has an incorrect Microsoft compiler.
185     # Since Cython is not strictly required, we will disable Cython and
186     # try re-running setup(), but only for this very specific situation.
187     if 'Microsoft Visual C++' not in str(e_info):
188         raise
189     elif using_cython == CYTHON_REQUIRED:
190         print("""
191 ERROR: Cython was explicitly requested with --with-cython, but cythonization
192        of core Pyomo modules failed.
193 """)
194         raise
195     else:
196         print("""
197 ERROR: setup() failed:
198     %s
199 Re-running setup() without the Cython modules
200 """ % (str(e_info),))
201         ext_modules = []
202         run_setup()
203         print("""
204 WARNING: Installation completed successfully, but the attempt to cythonize
205          core Pyomo modules failed.  Cython provides performance
206          optimizations and is not required for any Pyomo functionality.
207          Cython returned the following error:
208    "%s"
209 """ % (str(e_info),))
210
```
--- 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
@@ -113,11 +113,7 @@
         'Operating System :: Microsoft :: Windows',
         'Operating System :: Unix',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
@@ -127,10 +123,9 @@
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Scientific/Engineering :: Mathematics',
         'Topic :: Software Development :: Libraries :: Python Modules' ],
-      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
+      python_requires='>=3.6',
       install_requires=[
           'PyUtilib>=6.0.1.dev0',
-          'enum34;python_version<"3.4"',
           'ply',
           'six>=1.4',
       ],

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -113,11 +113,7 @@\n         'Operating System :: Microsoft :: Windows',\n         'Operating System :: Unix',\n         'Programming Language :: Python',\n-        'Programming Language :: Python :: 2',\n-        'Programming Language :: Python :: 2.7',\n         'Programming Language :: Python :: 3',\n-        'Programming Language :: Python :: 3.4',\n-        'Programming Language :: Python :: 3.5',\n         'Programming Language :: Python :: 3.6',\n         'Programming Language :: Python :: 3.7',\n         'Programming Language :: Python :: 3.8',\n@@ -127,10 +123,9 @@\n         'Programming Language :: Python :: Implementation :: PyPy',\n         'Topic :: Scientific/Engineering :: Mathematics',\n         'Topic :: Software Development :: Libraries :: Python Modules' ],\n-      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n+      python_requires='>=3.6',\n       install_requires=[\n           'PyUtilib>=6.0.1.dev0',\n-          'enum34;python_version<\"3.4\"',\n           'ply',\n           'six>=1.4',\n       ],\n", "issue": "Update manylinux builder once Python 3.9 is added\nWe use a Marketplace GitHub Action to build our manylinux wheels for release. The main branch of this does not yet have Python 3.9 support, but there is a PR waiting for approval that would add it:\r\n\r\nhttps://github.com/RalfG/python-wheels-manylinux-build/pull/33\r\n\r\nOnce this PR is merged, we will need to update the release workflow.\n", "before_files": [{"content": "#  ___________________________________________________________________________\n#\n#  Pyomo: Python Optimization Modeling Objects\n#  Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n#  Under the terms of Contract DE-NA0003525 with National Technology and\n#  Engineering Solutions of Sandia, LLC, the U.S. Government retains certain\n#  rights in this software.\n#  This software is distributed under the 3-clause BSD License.\n#  ___________________________________________________________________________\n\n\"\"\"\nScript to generate the installer for pyomo.\n\"\"\"\n\nimport sys\nimport os\n\ndef read(*rnames):\n    with open(os.path.join(os.path.dirname(__file__), *rnames)) as README:\n        # Strip all leading badges up to, but not including the COIN-OR\n        # badge so that they do not appear in the PyPI description\n        while True:\n            line = README.readline()\n            if 'COIN-OR' in line:\n                break\n            if line.strip() and '[![' not in line:\n                break\n        return line + README.read()\n\ndef get_version():\n    # Source pyomo/version/info.py to get the version number\n    _verInfo = dict(globals())\n    _verFile = os.path.join(os.path.dirname(__file__),\n                            'pyomo','version','info.py')\n    with open(_verFile) as _FILE:\n        exec(_FILE.read(), _verInfo)\n    return _verInfo['__version__']\n\nfrom setuptools import setup, find_packages\n\nCYTHON_REQUIRED = \"required\"\nif 'develop' in sys.argv:\n    using_cython = False\nelse:\n    using_cython = \"automatic\"\nif '--with-cython' in sys.argv:\n    using_cython = CYTHON_REQUIRED\n    sys.argv.remove('--with-cython')\nif '--without-cython' in sys.argv:\n    using_cython = False\n    sys.argv.remove('--without-cython')\n\next_modules = []\nif using_cython:\n    try:\n        import platform\n        if platform.python_implementation() != \"CPython\":\n            # break out of this try-except (disable Cython)\n            raise RuntimeError(\"Cython is only supported under CPython\")\n        from Cython.Build import cythonize\n        #\n        # Note: The Cython developers recommend that you destribute C source\n        # files to users.  But this is fine for evaluating the utility of Cython\n        #\n        import shutil\n        files = [\n            \"pyomo/core/expr/numvalue.pyx\",\n            \"pyomo/core/expr/numeric_expr.pyx\",\n            \"pyomo/core/expr/logical_expr.pyx\",\n            #\"pyomo/core/expr/visitor.pyx\",\n            \"pyomo/core/util.pyx\",\n            \"pyomo/repn/standard_repn.pyx\",\n            \"pyomo/repn/plugins/cpxlp.pyx\",\n            \"pyomo/repn/plugins/gams_writer.pyx\",\n            \"pyomo/repn/plugins/baron_writer.pyx\",\n            \"pyomo/repn/plugins/ampl/ampl_.pyx\",\n        ]\n        for f in files:\n            shutil.copyfile(f[:-1], f)\n        ext_modules = cythonize(files, compiler_directives={\n            \"language_level\": 3 if sys.version_info >= (3, ) else 2})\n    except:\n        if using_cython == CYTHON_REQUIRED:\n            print(\"\"\"\nERROR: Cython was explicitly requested with --with-cython, but cythonization\n       of core Pyomo modules failed.\n\"\"\")\n            raise\n        using_cython = False\n\ndef run_setup():\n   setup(name='Pyomo',\n      #\n      # Note: the release number is set in pyomo/version/info.py\n      #\n      version=get_version(),\n      maintainer='Pyomo Developer Team',\n      maintainer_email='pyomo-developers@googlegroups.com',\n      url='http://pyomo.org',\n      license='BSD',\n      platforms=[\"any\"],\n      description='Pyomo: Python Optimization Modeling Objects',\n      long_description=read('README.md'),\n      long_description_content_type='text/markdown',\n      keywords=['optimization'],\n      classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: End Users/Desktop',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: BSD License',\n        'Natural Language :: English',\n        'Operating System :: MacOS',\n        'Operating System :: Microsoft :: Windows',\n        'Operating System :: Unix',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n        'Programming Language :: Python :: 3.9',\n        'Programming Language :: Python :: Implementation :: CPython',\n        'Programming Language :: Python :: Implementation :: Jython',\n        'Programming Language :: Python :: Implementation :: PyPy',\n        'Topic :: Scientific/Engineering :: Mathematics',\n        'Topic :: Software Development :: Libraries :: Python Modules' ],\n      python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',\n      install_requires=[\n          'PyUtilib>=6.0.1.dev0',\n          'enum34;python_version<\"3.4\"',\n          'ply',\n          'six>=1.4',\n      ],\n      packages=find_packages(exclude=(\"scripts\",)),\n      package_data={\"pyomo.contrib.viewer\":[\"*.ui\"]},\n      ext_modules = ext_modules,\n      entry_points=\"\"\"\n        [console_scripts]\n        runbenders=pyomo.pysp.benders:Benders_main\n        evaluate_xhat=pyomo.pysp.evaluate_xhat:EvaluateXhat_main\n        runph=pyomo.pysp.phinit:PH_main\n        runef=pyomo.pysp.ef_writer_script:main\n        phsolverserver=pyomo.pysp.phsolverserver:main\n        scenariotreeserver=pyomo.pysp.scenariotree.server_pyro:main\n        computeconf=pyomo.pysp.computeconf:main\n\n        results_schema=pyomo.scripting.commands:results_schema\n        pyro_mip_server = pyomo.scripting.pyro_mip_server:main\n        test.pyomo = pyomo.scripting.runtests:runPyomoTests\n        pyomo = pyomo.scripting.pyomo_main:main_console_script\n        pyomo_ns = pyomo.scripting.commands:pyomo_ns\n        pyomo_nsc = pyomo.scripting.commands:pyomo_nsc\n        kill_pyro_mip_servers = pyomo.scripting.commands:kill_pyro_mip_servers\n        launch_pyro_mip_servers = pyomo.scripting.commands:launch_pyro_mip_servers\n        readsol = pyomo.scripting.commands:readsol\n        OSSolverService = pyomo.scripting.commands:OSSolverService\n        pyomo_python = pyomo.scripting.commands:pyomo_python\n        pyomo_old=pyomo.scripting.pyomo_command:main\n\n        [pyomo.command]\n        pyomo.runbenders=pyomo.pysp.benders\n        pyomo.evaluate_xhat=pyomo.pysp.evaluate_xhat\n        pyomo.runph=pyomo.pysp.phinit\n        pyomo.runef=pyomo.pysp.ef_writer_script\n        pyomo.phsolverserver=pyomo.pysp.phsolverserver\n        pyomo.scenariotreeserver=pyomo.pysp.scenariotree.server_pyro\n        pyomo.computeconf=pyomo.pysp.computeconf\n\n        pyomo.help = pyomo.scripting.driver_help\n        pyomo.test.pyomo = pyomo.scripting.runtests\n        pyomo.pyro_mip_server = pyomo.scripting.pyro_mip_server\n        pyomo.results_schema=pyomo.scripting.commands\n        pyomo.viewer=pyomo.contrib.viewer.pyomo_viewer\n      \"\"\"\n      )\n\ntry:\n    run_setup()\nexcept SystemExit as e_info:\n    # Cython can generate a SystemExit exception on Windows if the\n    # environment is missing / has an incorrect Microsoft compiler.\n    # Since Cython is not strictly required, we will disable Cython and\n    # try re-running setup(), but only for this very specific situation.\n    if 'Microsoft Visual C++' not in str(e_info):\n        raise\n    elif using_cython == CYTHON_REQUIRED:\n        print(\"\"\"\nERROR: Cython was explicitly requested with --with-cython, but cythonization\n       of core Pyomo modules failed.\n\"\"\")\n        raise\n    else:\n        print(\"\"\"\nERROR: setup() failed:\n    %s\nRe-running setup() without the Cython modules\n\"\"\" % (str(e_info),))\n        ext_modules = []\n        run_setup()\n        print(\"\"\"\nWARNING: Installation completed successfully, but the attempt to cythonize\n         core Pyomo modules failed.  Cython provides performance\n         optimizations and is not required for any Pyomo functionality.\n         Cython returned the following error:\n   \"%s\"\n\"\"\" % (str(e_info),))\n", "path": "setup.py"}], "after_files": [{"content": "#  ___________________________________________________________________________\n#\n#  Pyomo: Python Optimization Modeling Objects\n#  Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n#  Under the terms of Contract DE-NA0003525 with National Technology and\n#  Engineering Solutions of Sandia, LLC, the U.S. Government retains certain\n#  rights in this software.\n#  This software is distributed under the 3-clause BSD License.\n#  ___________________________________________________________________________\n\n\"\"\"\nScript to generate the installer for pyomo.\n\"\"\"\n\nimport sys\nimport os\n\ndef read(*rnames):\n    with open(os.path.join(os.path.dirname(__file__), *rnames)) as README:\n        # Strip all leading badges up to, but not including the COIN-OR\n        # badge so that they do not appear in the PyPI description\n        while True:\n            line = README.readline()\n            if 'COIN-OR' in line:\n                break\n            if line.strip() and '[![' not in line:\n                break\n        return line + README.read()\n\ndef get_version():\n    # Source pyomo/version/info.py to get the version number\n    _verInfo = dict(globals())\n    _verFile = os.path.join(os.path.dirname(__file__),\n                            'pyomo','version','info.py')\n    with open(_verFile) as _FILE:\n        exec(_FILE.read(), _verInfo)\n    return _verInfo['__version__']\n\nfrom setuptools import setup, find_packages\n\nCYTHON_REQUIRED = \"required\"\nif 'develop' in sys.argv:\n    using_cython = False\nelse:\n    using_cython = \"automatic\"\nif '--with-cython' in sys.argv:\n    using_cython = CYTHON_REQUIRED\n    sys.argv.remove('--with-cython')\nif '--without-cython' in sys.argv:\n    using_cython = False\n    sys.argv.remove('--without-cython')\n\next_modules = []\nif using_cython:\n    try:\n        import platform\n        if platform.python_implementation() != \"CPython\":\n            # break out of this try-except (disable Cython)\n            raise RuntimeError(\"Cython is only supported under CPython\")\n        from Cython.Build import cythonize\n        #\n        # Note: The Cython developers recommend that you destribute C source\n        # files to users.  But this is fine for evaluating the utility of Cython\n        #\n        import shutil\n        files = [\n            \"pyomo/core/expr/numvalue.pyx\",\n            \"pyomo/core/expr/numeric_expr.pyx\",\n            \"pyomo/core/expr/logical_expr.pyx\",\n            #\"pyomo/core/expr/visitor.pyx\",\n            \"pyomo/core/util.pyx\",\n            \"pyomo/repn/standard_repn.pyx\",\n            \"pyomo/repn/plugins/cpxlp.pyx\",\n            \"pyomo/repn/plugins/gams_writer.pyx\",\n            \"pyomo/repn/plugins/baron_writer.pyx\",\n            \"pyomo/repn/plugins/ampl/ampl_.pyx\",\n        ]\n        for f in files:\n            shutil.copyfile(f[:-1], f)\n        ext_modules = cythonize(files, compiler_directives={\n            \"language_level\": 3 if sys.version_info >= (3, ) else 2})\n    except:\n        if using_cython == CYTHON_REQUIRED:\n            print(\"\"\"\nERROR: Cython was explicitly requested with --with-cython, but cythonization\n       of core Pyomo modules failed.\n\"\"\")\n            raise\n        using_cython = False\n\ndef run_setup():\n   setup(name='Pyomo',\n      #\n      # Note: the release number is set in pyomo/version/info.py\n      #\n      version=get_version(),\n      maintainer='Pyomo Developer Team',\n      maintainer_email='pyomo-developers@googlegroups.com',\n      url='http://pyomo.org',\n      license='BSD',\n      platforms=[\"any\"],\n      description='Pyomo: Python Optimization Modeling Objects',\n      long_description=read('README.md'),\n      long_description_content_type='text/markdown',\n      keywords=['optimization'],\n      classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: End Users/Desktop',\n        'Intended Audience :: Science/Research',\n        'License :: OSI Approved :: BSD License',\n        'Natural Language :: English',\n        'Operating System :: MacOS',\n        'Operating System :: Microsoft :: Windows',\n        'Operating System :: Unix',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n        'Programming Language :: Python :: 3.8',\n        'Programming Language :: Python :: 3.9',\n        'Programming Language :: Python :: Implementation :: CPython',\n        'Programming Language :: Python :: Implementation :: Jython',\n        'Programming Language :: Python :: Implementation :: PyPy',\n        'Topic :: Scientific/Engineering :: Mathematics',\n        'Topic :: Software Development :: Libraries :: Python Modules' ],\n      python_requires='>=3.6',\n      install_requires=[\n          'PyUtilib>=6.0.1.dev0',\n          'ply',\n          'six>=1.4',\n      ],\n      packages=find_packages(exclude=(\"scripts\",)),\n      package_data={\"pyomo.contrib.viewer\":[\"*.ui\"]},\n      ext_modules = ext_modules,\n      entry_points=\"\"\"\n        [console_scripts]\n        runbenders=pyomo.pysp.benders:Benders_main\n        evaluate_xhat=pyomo.pysp.evaluate_xhat:EvaluateXhat_main\n        runph=pyomo.pysp.phinit:PH_main\n        runef=pyomo.pysp.ef_writer_script:main\n        phsolverserver=pyomo.pysp.phsolverserver:main\n        scenariotreeserver=pyomo.pysp.scenariotree.server_pyro:main\n        computeconf=pyomo.pysp.computeconf:main\n\n        results_schema=pyomo.scripting.commands:results_schema\n        pyro_mip_server = pyomo.scripting.pyro_mip_server:main\n        test.pyomo = pyomo.scripting.runtests:runPyomoTests\n        pyomo = pyomo.scripting.pyomo_main:main_console_script\n        pyomo_ns = pyomo.scripting.commands:pyomo_ns\n        pyomo_nsc = pyomo.scripting.commands:pyomo_nsc\n        kill_pyro_mip_servers = pyomo.scripting.commands:kill_pyro_mip_servers\n        launch_pyro_mip_servers = pyomo.scripting.commands:launch_pyro_mip_servers\n        readsol = pyomo.scripting.commands:readsol\n        OSSolverService = pyomo.scripting.commands:OSSolverService\n        pyomo_python = pyomo.scripting.commands:pyomo_python\n        pyomo_old=pyomo.scripting.pyomo_command:main\n\n        [pyomo.command]\n        pyomo.runbenders=pyomo.pysp.benders\n        pyomo.evaluate_xhat=pyomo.pysp.evaluate_xhat\n        pyomo.runph=pyomo.pysp.phinit\n        pyomo.runef=pyomo.pysp.ef_writer_script\n        pyomo.phsolverserver=pyomo.pysp.phsolverserver\n        pyomo.scenariotreeserver=pyomo.pysp.scenariotree.server_pyro\n        pyomo.computeconf=pyomo.pysp.computeconf\n\n        pyomo.help = pyomo.scripting.driver_help\n        pyomo.test.pyomo = pyomo.scripting.runtests\n        pyomo.pyro_mip_server = pyomo.scripting.pyro_mip_server\n        pyomo.results_schema=pyomo.scripting.commands\n        pyomo.viewer=pyomo.contrib.viewer.pyomo_viewer\n      \"\"\"\n      )\n\ntry:\n    run_setup()\nexcept SystemExit as e_info:\n    # Cython can generate a SystemExit exception on Windows if the\n    # environment is missing / has an incorrect Microsoft compiler.\n    # Since Cython is not strictly required, we will disable Cython and\n    # try re-running setup(), but only for this very specific situation.\n    if 'Microsoft Visual C++' not in str(e_info):\n        raise\n    elif using_cython == CYTHON_REQUIRED:\n        print(\"\"\"\nERROR: Cython was explicitly requested with --with-cython, but cythonization\n       of core Pyomo modules failed.\n\"\"\")\n        raise\n    else:\n        print(\"\"\"\nERROR: setup() failed:\n    %s\nRe-running setup() without the Cython modules\n\"\"\" % (str(e_info),))\n        ext_modules = []\n        run_setup()\n        print(\"\"\"\nWARNING: Installation completed successfully, but the attempt to cythonize\n         core Pyomo modules failed.  Cython provides performance\n         optimizations and is not required for any Pyomo functionality.\n         Cython returned the following error:\n   \"%s\"\n\"\"\" % (str(e_info),))\n", "path": "setup.py"}]}