diff --git a/app_sina.py b/app_sina.py index 88da9bb..7f3d1b5 100644 --- a/app_sina.py +++ b/app_sina.py @@ -4,13 +4,6 @@ import subprocess from wsgiauth.basic import BasicAuth -from gevent.monkey import get_original -try: - select.poll = get_original('select', 'poll') -except AttributeError: - select.poll = get_original('select', 'kqueue') -subprocess.Popen = get_original('subprocess', 'Popen') - from sina import Sina from sina.config import DEFAULT_CONFIG diff --git a/dockerfiles/python/requirements.txt b/dockerfiles/python/requirements.txt index b0cebe6..21953a8 100644 --- a/dockerfiles/python/requirements.txt +++ b/dockerfiles/python/requirements.txt @@ -23,7 +23,7 @@ WebTest==2.0.20 mock==1.3.0 nose==1.3.7 docutils==0.12 --e git+https://github.com/douban/sina.git@c8dbe938d7238ba44851cca36934b07320b0e143#egg=sina +-e git+https://github.com/douban/sina.git@fd90a60150545bafd491dfd632d0f8212ae4f622#egg=sina -e git+https://github.com/douban/douban-utils.git@5ca697545da191dab3fbe308e6b6776d8da83bd5#egg=DoubanUtils -e git+https://github.com/douban/douban-sqlstore.git@d7136b7cac1075f0b285e8c763af2e85124f8b76#egg=DoubanSQLStore -e git+https://github.com/dongweiming/douban-mc.git@5a0a21cdb73a448eb09a1b657ad80d4941ddb404#egg=DoubanMC diff --git a/web.py b/web.py index 86ac2ed..ee157ec 100644 --- a/web.py +++ b/web.py @@ -5,6 +5,7 @@ import sys import time import traceback +from gevent import monkey; monkey.patch_all() from quixote.qwip import QWIP from quixote.publish import SessionPublisher