diff --git a/requirements.txt b/requirements.txt index a26ec758d5..3b2a4080de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ libtorrent -twisted[tls]>=17.1 +twisted[tls]>=17.1; sys_platform != 'win32' +twisted[tls]<23,>=17.1; sys_platform == 'win32' rencode pyopenssl pyxdg diff --git a/setup.py b/setup.py index ef70f20b0a..509d383e40 100755 --- a/setup.py +++ b/setup.py @@ -538,7 +538,8 @@ def run(self): setup_requires = ['setuptools', 'wheel'] install_requires = [ - 'twisted[tls]>=17.1', + "twisted[tls]>=17.1; sys_platform != 'win32'", + "twisted[tls]<23,>=17.1; sys_platform == 'win32'", # Add pyasn1 for setuptools workaround: # https://github.com/pypa/setuptools/issues/1510 'pyasn1',