@@ -143,35 +143,31 @@ def write_triples_makefiles(
143143
144144for triple ,settings in targets .items ():
145145for host_platform in settings ["host_platforms" ]:
146- for python in settings ["pythons_supported" ]:
147- makefile_path = dest_dir / (
148- "Makefile.%s.%s.%s" % (host_platform ,triple ,python )
149- )
146+ makefile_path = dest_dir / ("Makefile.%s.%s" % (host_platform ,triple ))
150147
151- lines = []
152- for need in settings .get ("needs" , []):
153- lines .append (
154- "NEED_%s := 1\n "
155- % need .upper ().replace ("-" ,"_" ).replace ("." ,"_" )
156- )
148+ lines = []
149+ for need in settings .get ("needs" , []):
150+ lines .append (
151+ "NEED_%s := 1\n " % need .upper ().replace ("-" ,"_" ).replace ("." ,"_" )
152+ )
157153
158- image_suffix = settings .get ("docker_image_suffix" ,"" )
154+ image_suffix = settings .get ("docker_image_suffix" ,"" )
159155
160- lines .append ("DOCKER_IMAGE_BUILD := build%s\n " % image_suffix )
161- lines .append ("DOCKER_IMAGE_XCB := xcb%s\n " % image_suffix )
156+ lines .append ("DOCKER_IMAGE_BUILD := build%s\n " % image_suffix )
157+ lines .append ("DOCKER_IMAGE_XCB := xcb%s\n " % image_suffix )
162158
163- entry = clang_toolchain (host_platform ,triple )
164- lines .append (
165- "CLANG_FILENAME := %s-%s-%s.tar\n "
166- % (entry ,DOWNLOADS [entry ]["version" ],host_platform )
167- )
159+ entry = clang_toolchain (host_platform ,triple )
160+ lines .append (
161+ "CLANG_FILENAME := %s-%s-%s.tar\n "
162+ % (entry ,DOWNLOADS [entry ]["version" ],host_platform )
163+ )
168164
169- lines .append (
170- "PYTHON_SUPPORT_FILES := $(PYTHON_SUPPORT_FILES) %s\n "
171- % (support_search_dir / "extension-modules.yml" )
172- )
165+ lines .append (
166+ "PYTHON_SUPPORT_FILES := $(PYTHON_SUPPORT_FILES) %s\n "
167+ % (support_search_dir / "extension-modules.yml" )
168+ )
173169
174- write_if_different (makefile_path ,"" .join (lines ).encode ("ascii" ))
170+ write_if_different (makefile_path ,"" .join (lines ).encode ("ascii" ))
175171
176172
177173def write_package_versions (dest_path :pathlib .Path ):