There was an error while loading. Please reload this page.
1 parent 7edcd84 commit 10b977fCopy full SHA for 10b977f
1 file changed
src/xmake_python/wheel.py
@@ -29,11 +29,9 @@
29
Root-Is-Purelib: true
30
""".format(version=__version__)
31
32
-def _write_wheel_file(f, supports_py2=False):
+def _write_wheel_file(f, tag):
33
f.write(wheel_file_template)
34
- if supports_py2:
35
- f.write("Tag: py2-none-any\n")
36
- f.write("Tag: py3-none-any\n")
+ f.write(f"Tag: {tag}\n")
37
38
39
def _set_zinfo_mode(zinfo, mode):
@@ -249,7 +247,7 @@ def write_metadata(self):
249
247
self._add_file(full_path, '%s/%s' % (self.dist_info, rel_path))
250
248
251
with self._write_to_zip(self.dist_info + '/WHEEL') as f:
252
- _write_wheel_file(f, supports_py2=self.metadata.supports_py2)
+ _write_wheel_file(f, self.wheeltag)
253
254
with self._write_to_zip(self.dist_info + '/METADATA') as f:
255
self.metadata.write_metadata_file(f)
0 commit comments