diff --git a/setup.py b/setup.py index b41f1c52..e3739f5c 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,8 @@ install_requires = [ 'msgpack>=0.5.0', + 'greenlet>=3.0; python_implementation != "PyPy"', + 'typing-extensions>=4.5; python_version < "3.12"', ] needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) @@ -32,13 +34,6 @@ 'docs': docs_require, } -if platform.python_implementation() != 'PyPy': - # pypy already includes an implementation of the greenlet module - install_requires.append('greenlet>=3.0') - -if sys.version_info < (3, 12): - install_requires.append('typing-extensions>=4.5') - # __version__: see pynvim/_version.py with open(os.path.join(__PATH__, "pynvim/_version.py"),