From c7c60877e43ff104335f8c32833cced0d2ff4021 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Apr 2021 17:21:53 +0200 Subject: [PATCH] Fix another dependency problem with httpbin and Python 3.4 Crazily, pip installs seem to be non-deterministic as installing httpbin in https://travis-ci.org/github/wxWidgets/wxWidgets/jobs/765946720 pulled in werkzeug 0.16.1 which works with Python 3.4, but doing it again tries to use werkzeug 1.x which isn't. Fix the version explicitly to work around this. --- build/tools/httpbin.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index 388d673e43..3909fc1e91 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -22,13 +22,14 @@ httpbin_launch() { # Current decorator (>= 5) is incompatible with Python 3.4 used # here, so explicitly use a version which is known to work. - pip_decorator_arg='decorator==4.4.2' + # Similarly, werkzeug >= 1 doesn't support 3.4 any longer. + pip_explicit_deps='decorator==4.4.2 werkzeug==0.16.1' ;; macOS) # We use Python 2 under macOS 10.11 which doesn't have Python 3, # and decorator >= 5 is incompatible with it too. - pip_decorator_arg='decorator==4.4.2' + pip_explicit_deps='decorator==4.4.2' ;; *) @@ -55,7 +56,7 @@ httpbin_launch() { echo "Installing using `python$PY3 -m pip --version`" - python$PY3 -m pip install $pip_decorator_arg httpbin --user + python$PY3 -m pip install $pip_explicit_deps httpbin --user python$PY3 -m httpbin.core 2>&1 >httpbin.log & WX_TEST_WEBREQUEST_URL="http://localhost:5000"