setup.py: Do not install aiodns on windows (fix #3556)

aiodns is broken on the default windows event loop and the workaround
has significant downsides. This has downsides too as it prevents
resolution of SRV records by default.
This commit is contained in:
mathieui 2024-08-25 13:18:31 +02:00
parent e96f8e1ed0
commit 7f926a944a

View File

@ -87,7 +87,7 @@ setup(
packages=packages,
ext_modules=ext_modules,
install_requires=[
'aiodns>=1.0',
'aiodns >= 1.0; sys_platform=="linux" or sys_platform=="darwin"',
'pyasn1',
'pyasn1_modules',
'typing_extensions; python_version < "3.8.0"',