@@ -132,24 +132,27 @@ def write_triples_makefiles(targets, dest_dir: pathlib.Path):
132
132
dest_dir .mkdir (parents = True , exist_ok = True )
133
133
134
134
for triple , settings in targets .items ():
135
- for python in settings ["pythons_supported" ]:
136
- makefile_path = dest_dir / ("Makefile.%s.%s" % (triple , python ))
135
+ for host_platform in settings ["host_platforms" ]:
136
+ for python in settings ["pythons_supported" ]:
137
+ makefile_path = dest_dir / (
138
+ "Makefile.%s.%s.%s" % (host_platform , triple , python )
139
+ )
137
140
138
- lines = []
139
- for need in settings .get ("needs" , []):
140
- lines .append ("NEED_%s := 1\n " % need .upper ())
141
+ lines = []
142
+ for need in settings .get ("needs" , []):
143
+ lines .append ("NEED_%s := 1\n " % need .upper ())
141
144
142
- if "PYBUILD_LIBRESSL" in os .environ :
143
- lines .append ("NEED_LIBRESSL := 1\n " )
144
- else :
145
- lines .append ("NEED_OPENSSL := 1\n " )
145
+ if "PYBUILD_LIBRESSL" in os .environ :
146
+ lines .append ("NEED_LIBRESSL := 1\n " )
147
+ else :
148
+ lines .append ("NEED_OPENSSL := 1\n " )
146
149
147
- image_suffix = settings .get ("docker_image_suffix" , "" )
150
+ image_suffix = settings .get ("docker_image_suffix" , "" )
148
151
149
- lines .append ("DOCKER_IMAGE_BUILD := build%s\n " % image_suffix )
150
- lines .append ("DOCKER_IMAGE_XCB := xcb%s\n " % image_suffix )
152
+ lines .append ("DOCKER_IMAGE_BUILD := build%s\n " % image_suffix )
153
+ lines .append ("DOCKER_IMAGE_XCB := xcb%s\n " % image_suffix )
151
154
152
- write_if_different (makefile_path , "" .join (lines ).encode ("ascii" ))
155
+ write_if_different (makefile_path , "" .join (lines ).encode ("ascii" ))
153
156
154
157
155
158
def write_package_versions (dest_path : pathlib .Path ):
0 commit comments