From 861ce44b2470e3eb2344d7c1382b2a7d10d707af Mon Sep 17 00:00:00 2001 From: juj Date: Fri, 18 Oct 2024 15:30:52 -0700 Subject: [PATCH] Pin python requests library to 2.32.3. (latest at the time of writing) (#1478) --- scripts/update_python.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/update_python.py b/scripts/update_python.py index ae889d6..c5273f3 100755 --- a/scripts/update_python.py +++ b/scripts/update_python.py @@ -141,11 +141,7 @@ def build_python(): pybin = os.path.join(src_dir, 'install', 'usr', 'local', 'bin', 'python3') pip = os.path.join(src_dir, 'install', 'usr', 'local', 'bin', 'pip3') check_call([pybin, '-m', 'ensurepip', '--upgrade']) - # TODO: Potential bug: the following cmdline does not pin down a version - # of requests module, resulting in possibly different version of the module - # being installed on future runs. Switch to pip install requests== to - # to download a pinned version. - check_call([pybin, pip, 'install', 'requests']) + check_call([pybin, pip, 'install', 'requests==2.32.3']) # Install psutil module. This is needed by emrun to track when browser # process quits.