Skip to content

Commit e0090d0

Browse files
authored
Use published version of librt (#19945)
Ref mypyc/mypyc#1128 Another step towards making fixed format cache the default one.
1 parent 44bbb18 commit e0090d0

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

mypy-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ typing_extensions>=4.6.0
44
mypy_extensions>=1.0.0
55
pathspec>=0.9.0
66
tomli>=1.1.0; python_version<'3.11'
7+
librt>=0.1.0

mypy_self_check.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ enable_error_code = ignore-without-code,redundant-expr
1313
enable_incomplete_feature = PreciseTupleTypes
1414
show_error_code_links = True
1515
warn_unreachable = True
16+
fixed_format_cache = True

mypyc/lib-rt/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def run(self) -> None:
7373
# TODO: we need a way to share our preferred C flags and get_extension() logic with
7474
# mypyc/build.py without code duplication.
7575
setup(
76-
name="mypy-native",
77-
version="0.0.1",
7876
ext_modules=[
7977
Extension(
8078
"native_internal",
@@ -88,5 +86,5 @@ def run(self) -> None:
8886
],
8987
include_dirs=["."],
9088
)
91-
],
89+
]
9290
)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ requires = [
99
"mypy_extensions>=1.0.0",
1010
"pathspec>=0.9.0",
1111
"tomli>=1.1.0; python_version<'3.11'",
12+
"librt>=0.1.0",
1213
# the following is from build-requirements.txt
1314
"types-psutil",
1415
"types-setuptools",

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ def run(self) -> None:
156156
log_trace=log_trace,
157157
# Mypy itself is allowed to use native_internal extension.
158158
depends_on_native_internal=True,
159-
# TODO: temporary, remove this after we publish mypy-native on PyPI.
160-
install_native_libs=True,
161159
)
162160

163161
else:

test-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ identify==2.6.13
2222
# via pre-commit
2323
iniconfig==2.1.0
2424
# via pytest
25+
librt==0.1.0
26+
# via -r mypy-requirements.txt
2527
lxml==6.0.1 ; python_version < "3.15"
2628
# via -r test-requirements.in
2729
mypy-extensions==1.1.0

0 commit comments

Comments
 (0)