diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
 from setuptools import setup
 from rejected import __version__
+import os
 import sys
 
 classifiers = ['Development Status :: 5 - Production/Stable',
@@ -22,6 +23,9 @@ extras_require = {'html': ['beautifulsoup4']}
 if sys.version_info < (2, 7, 0):
     install_requires.append('importlib')
 
+if os.environ.get('READTHEDOCS', None) == 'True':
+    install_requires.append('pyev==0.8.1')
+
 setup(name='rejected',
       version=__version__,
       description='Rejected is a Python RabbitMQ Consumer Framework and '
Install a pinned version of pyev due to build errors on rtd