setup: pass --reactor=poll to trial unless REACTOR variable is set, in which case pass --reactor=$(REACTOR)

This hopefully works around the problem that Twisted v8.1.0 has a bug when used
with pyOpenSSL v0.7 which bug causes some unit tests to spuriously fail -- see
known_issues.txt r2788:

http://allmydata.org/trac/tahoe/browser/docs/known_issues.txt?rev=2788#L122

Also it matches with the fact that --reactor=poll is required on cygwin.
This commit is contained in:
Zooko O'Whielacronx 2008-07-29 19:39:06 -07:00
parent 01e5ca68e2
commit 3eb5f221d7
1 changed files with 1 additions and 7 deletions

View File

@ -7,8 +7,6 @@ PYTHON=python
PATHSEP=$(shell $(PYTHON) -c 'import os ; print os.pathsep') PATHSEP=$(shell $(PYTHON) -c 'import os ; print os.pathsep')
OSSEP=$(shell $(PYTHON) -c 'import os ; print os.sep') OSSEP=$(shell $(PYTHON) -c 'import os ; print os.sep')
REACTOR=
ifneq ($(INCLUDE_DIRS),) ifneq ($(INCLUDE_DIRS),)
INCLUDE_DIRS_ARG = -I$(INCLUDE_DIRS) INCLUDE_DIRS_ARG = -I$(INCLUDE_DIRS)
endif endif
@ -31,14 +29,10 @@ else
CHECK_PYWIN32_DEP := CHECK_PYWIN32_DEP :=
endif endif
ifeq ($(PLAT),cygwin)
REACTOR = poll
endif
ifneq ($(REACTOR),) ifneq ($(REACTOR),)
REACTOROPT := --reactor=$(REACTOR) REACTOROPT := --reactor=$(REACTOR)
else else
REACTOROPT := REACTOROPT := --reactor=poll
endif endif
ifneq ($(PYTHONPATH),) ifneq ($(PYTHONPATH),)