@@ -53,22 +53,11 @@ class ModDesc(NamedTuple):
5353
5454
5555LIBRT_MODULES = [
56- ModDesc (
57- "librt.internal" ,
58- ["internal/librt_internal_static.c" , "internal/librt_internal.c" ],
59- [],
60- ["internal" ],
61- ),
62- ModDesc (
63- "librt.strings" ,
64- ["strings/librt_strings_static.c" , "strings/librt_strings.c" ],
65- [],
66- ["strings" ],
67- ),
56+ ModDesc ("librt.internal" , ["internal/librt_internal.c" ], [], ["internal" ]),
57+ ModDesc ("librt.strings" , ["strings/librt_strings.c" ], [], ["strings" ]),
6858 ModDesc (
6959 "librt.base64" ,
7060 [
71- "base64/librt_base64_static.c" ,
7261 "base64/librt_base64.c" ,
7362 "base64/lib.c" ,
7463 "base64/codec_choose.c" ,
@@ -118,7 +107,6 @@ class ModDesc(NamedTuple):
118107 ModDesc (
119108 "librt.vecs" ,
120109 [
121- "vecs/librt_vecs_static.c" ,
122110 "vecs/librt_vecs.c" ,
123111 "vecs/vec_i64.c" ,
124112 "vecs/vec_i32.c" ,
@@ -132,9 +120,7 @@ class ModDesc(NamedTuple):
132120 ["vecs/librt_vecs.h" , "vecs/vec_template.c" ],
133121 ["vecs" ],
134122 ),
135- ModDesc (
136- "librt.time" , ["time/librt_time_static.c" , "time/librt_time.c" ], ["time/librt_time.h" ], []
137- ),
123+ ModDesc ("librt.time" , ["time/librt_time.c" ], ["time/librt_time.h" ], []),
138124]
139125
140126try :
@@ -531,9 +517,7 @@ def mypyc_build(
531517 * ,
532518 separate : bool | list [tuple [list [str ], str | None ]] = False ,
533519 only_compile_paths : Iterable [str ] | None = None ,
534- skip_cgen_input : (
535- tuple [list [list [tuple [str , str ]]], list [tuple [str , bool , list [str ]]]] | None
536- ) = None ,
520+ skip_cgen_input : tuple [list [list [tuple [str , str ]]], list [tuple [str , list [str ]]]] | None = None ,
537521 always_use_shared_lib : bool = False ,
538522) -> tuple [emitmodule .Groups , list [tuple [list [str ], list [str ]]], list [SourceDep ]]:
539523 """Do the front and middle end of mypyc building, producing and writing out C source."""
@@ -567,10 +551,7 @@ def mypyc_build(
567551 write_file (os .path .join (compiler_options .target_dir , "ops.txt" ), ops_text )
568552 else :
569553 group_cfiles = skip_cgen_input [0 ]
570- source_deps = [
571- SourceDep (path , has_header = hdr , include_dirs = dirs )
572- for (path , hdr , dirs ) in skip_cgen_input [1 ]
573- ]
554+ source_deps = [SourceDep (path , include_dirs = dirs ) for (path , dirs ) in skip_cgen_input [1 ]]
574555
575556 # Write out the generated C and collect the files for each group
576557 # Should this be here??
@@ -687,9 +668,7 @@ def mypycify(
687668 strip_asserts : bool = False ,
688669 multi_file : bool = False ,
689670 separate : bool | list [tuple [list [str ], str | None ]] = False ,
690- skip_cgen_input : (
691- tuple [list [list [tuple [str , str ]]], list [tuple [str , bool , list [str ]]]] | None
692- ) = None ,
671+ skip_cgen_input : tuple [list [list [tuple [str , str ]]], list [tuple [str , list [str ]]]] | None = None ,
693672 target_dir : str | None = None ,
694673 include_runtime_files : bool | None = None ,
695674 strict_dunder_typing : bool = False ,
@@ -812,8 +791,7 @@ def mypycify(
812791 files_to_copy = list (RUNTIME_C_FILES )
813792 for source_dep in source_deps :
814793 files_to_copy .append (source_dep .path )
815- if header := source_dep .get_header ():
816- files_to_copy .append (header )
794+ files_to_copy .append (source_dep .get_header ())
817795 include_dirs .update (source_dep .include_dirs )
818796
819797 # Copy all files
0 commit comments