File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def auto(cls):
40
40
41
41
class ARCH (Enum ):
42
42
X86_64 = "x86_64"
43
+ X86 = "x86"
43
44
AMD64 = "amd64"
44
45
AARCH64 = "aarch64"
45
46
I386 = "i686"
@@ -59,6 +60,8 @@ def auto(cls, os: OS):
59
60
return cls .AMD64
60
61
return cls .X86_64
61
62
elif arch_name == "386" :
63
+ if os == OS .WINDOWS :
64
+ return cls .X86
62
65
return cls .I386
63
66
elif arch_name == "arm" :
64
67
return cls .ARM
@@ -77,10 +80,16 @@ def repack(_os: OS, arch: ARCH):
77
80
if _os == OS .MAC :
78
81
arch_value = f"12_0_{ arch_value } "
79
82
with open (wheel_path , "w" ) as file :
80
- file .write (
81
- wheel .replace ("py3-none-any" , f"py310-none-{ _os .value } _{ arch_value } " )
82
- )
83
- print (wheel .replace ("py3-none-any" , f"py310-none-{ _os .value } _{ arch_value } " ))
83
+ if _os == OS .WINDOWS and arch == ARCH .X86 :
84
+ file .write (
85
+ wheel .replace ("py3-none-any" , "py310-none-win32" )
86
+ )
87
+ print (wheel .replace ("py3-none-any" , "py310-none-win32" ))
88
+ else :
89
+ file .write (
90
+ wheel .replace ("py3-none-any" , f"py310-none-{ _os .value } _{ arch_value } " )
91
+ )
92
+ print (wheel .replace ("py3-none-any" , f"py310-none-{ _os .value } _{ arch_value } " ))
84
93
subprocess .call (["wheel" , "pack" , WORKDIR / "dist" / fname ], cwd = WORKDIR / "dist" )
85
94
os .remove (WORKDIR / "dist" / wheel_name )
86
95
os .remove (WORKDIR / "dist" / (fname + ".tar.gz" ))
You can’t perform that action at this time.
0 commit comments