mirror of https://github.com/python/cpython
gh-108455: peg_generator: use `types-setuptools==68.1.0.1` in CI (#108697)
This commit is contained in:
parent
991e4e76b5
commit
b89b838ebc
|
@ -13,8 +13,3 @@ enable_error_code = truthy-bool,ignore-without-code
|
||||||
# except for a few settings that can't yet be enabled:
|
# except for a few settings that can't yet be enabled:
|
||||||
warn_return_any = False
|
warn_return_any = False
|
||||||
warn_unreachable = False
|
warn_unreachable = False
|
||||||
|
|
||||||
[mypy-pegen.build]
|
|
||||||
# we need this for now due to some missing annotations
|
|
||||||
# in typeshed's stubs for setuptools
|
|
||||||
disallow_untyped_calls = False
|
|
||||||
|
|
|
@ -148,8 +148,7 @@ def compile_c_extension(
|
||||||
cmd.include_dirs = include_dirs
|
cmd.include_dirs = include_dirs
|
||||||
if build_dir:
|
if build_dir:
|
||||||
cmd.build_temp = build_dir
|
cmd.build_temp = build_dir
|
||||||
# A deficiency in typeshed's stubs means we have to type: ignore:
|
cmd.ensure_finalized()
|
||||||
cmd.ensure_finalized() # type: ignore[attr-defined]
|
|
||||||
|
|
||||||
compiler = new_compiler()
|
compiler = new_compiler()
|
||||||
customize_compiler(compiler)
|
customize_compiler(compiler)
|
||||||
|
@ -160,8 +159,8 @@ def compile_c_extension(
|
||||||
library_filename = compiler.library_filename(extension_name, output_dir=library_dir)
|
library_filename = compiler.library_filename(extension_name, output_dir=library_dir)
|
||||||
if newer_group(common_sources, library_filename, "newer"):
|
if newer_group(common_sources, library_filename, "newer"):
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
# A deficiency in typeshed's stubs means we have to type: ignore:
|
assert compiler.static_lib_format
|
||||||
pdb = compiler.static_lib_format % (extension_name, ".pdb") # type: ignore[attr-defined]
|
pdb = compiler.static_lib_format % (extension_name, ".pdb")
|
||||||
compile_opts = [f"/Fd{library_dir}\\{pdb}"]
|
compile_opts = [f"/Fd{library_dir}\\{pdb}"]
|
||||||
compile_opts.extend(extra_compile_args)
|
compile_opts.extend(extra_compile_args)
|
||||||
else:
|
else:
|
||||||
|
@ -213,7 +212,7 @@ def compile_c_extension(
|
||||||
ext_path,
|
ext_path,
|
||||||
libraries=cmd.get_libraries(extension),
|
libraries=cmd.get_libraries(extension),
|
||||||
extra_postargs=extra_link_args,
|
extra_postargs=extra_link_args,
|
||||||
export_symbols=cmd.get_export_symbols(extension),
|
export_symbols=cmd.get_export_symbols(extension), # type: ignore[no-untyped-call]
|
||||||
debug=cmd.debug,
|
debug=cmd.debug,
|
||||||
build_temp=cmd.build_temp,
|
build_temp=cmd.build_temp,
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,4 +4,4 @@ mypy==1.5.1
|
||||||
|
|
||||||
# needed for peg_generator:
|
# needed for peg_generator:
|
||||||
types-psutil==5.9.5.16
|
types-psutil==5.9.5.16
|
||||||
types-setuptools==68.1.0.0
|
types-setuptools==68.1.0.1
|
||||||
|
|
Loading…
Reference in New Issue