@@ -145,15 +145,15 @@ def compile_c_extension(
145145 str (MOD_DIR .parent .parent .parent / "Parser" / "lexer" ),
146146 str (MOD_DIR .parent .parent .parent / "Parser" / "tokenizer" ),
147147 ]
148- library_dirs = []
148+ library_dirs : list [ str ] = []
149149 if sys .platform == "win32" :
150150 # HACK: The location of pyconfig.h has moved within our build, and
151151 # setuptools hasn't updated for it yet. So add the path manually for now
152- include_dirs .append (pathlib .Path (sysconfig .get_config_h_filename ()).parent )
152+ include_dirs .append (str ( pathlib .Path (sysconfig .get_config_h_filename ()).parent ) )
153153 if sysconfig .is_python_build ():
154154 # HACK: Our output directory for free-threaded builds has moved, and so
155155 # tests running in-tree require our sys.executable directory for libs
156- library_dirs .append (pathlib .Path (sys .executable ).parent )
156+ library_dirs .append (str ( pathlib .Path (sys .executable ).parent ) )
157157 extension = Extension (
158158 extension_name ,
159159 sources = [generated_source_path ],
@@ -165,8 +165,8 @@ def compile_c_extension(
165165 assert isinstance (cmd , setuptools .command .build_ext .build_ext )
166166 fixup_build_ext (cmd )
167167 cmd .build_lib = str (source_file_path .parent )
168- cmd .include_dirs = [ str ( p ) for p in include_dirs ]
169- cmd .library_dirs = [ str ( p ) for p in library_dirs ]
168+ cmd .include_dirs = include_dirs
169+ cmd .library_dirs = library_dirs
170170 if build_dir :
171171 cmd .build_temp = build_dir
172172 cmd .ensure_finalized ()
0 commit comments