From 8fccd93c9a89ab9ebae7ea365188f3cb965392a4 Mon Sep 17 00:00:00 2001 From: Jared Hance Date: Mon, 10 Nov 2025 21:23:40 +0000 Subject: [PATCH 1/2] Pin exact librt instead of lower bound --- mypy-requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index a69d31088e55..385a5359e86f 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -4,4 +4,6 @@ typing_extensions>=4.6.0 mypy_extensions>=1.0.0 pathspec>=0.9.0 tomli>=1.1.0; python_version<'3.11' -librt>=0.5.0 +# pin exact version; its okay to allow a range of versions only when its known +# that the entire range has the same abi version +librt==0.5.0 From 28275b5bb7bc4e4d4f4c3691a07ad8b3d8decfa5 Mon Sep 17 00:00:00 2001 From: Jared Hance Date: Mon, 10 Nov 2025 22:35:33 +0000 Subject: [PATCH 2/2] fix pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 42ff3a6ca019..1ae9fbd832fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ "mypy_extensions>=1.0.0", "pathspec>=0.9.0", "tomli>=1.1.0; python_version<'3.11'", - "librt>=0.5.0", + "librt==0.5.0", # the following is from build-requirements.txt "types-psutil", "types-setuptools", @@ -54,7 +54,7 @@ dependencies = [ "mypy_extensions>=1.0.0", "pathspec>=0.9.0", "tomli>=1.1.0; python_version<'3.11'", - "librt>=0.5.0", + "librt==0.5.0", ] dynamic = ["version"]