Skip to content

Commit e1966de

Browse files
committed
Make: Guess platform for PyPI and sdist
1 parent 57822a4 commit e1966de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@ def get_compiler() -> str:
183183

184184
def is_64bit_x86() -> bool:
185185
if using_cibuildwheel:
186-
return "SZ_IS_64BIT_X86_" in os.environ
186+
if "SZ_IS_64BIT_X86_" in os.environ:
187+
return True
187188
arch = platform.machine()
188189
return arch in ["x86_64", "x64", "AMD64"]
189190

190191

191192
def is_64bit_arm() -> bool:
192193
if using_cibuildwheel:
193-
return "SZ_IS_64BIT_ARM_" in os.environ
194+
if "SZ_IS_64BIT_ARM_" in os.environ:
195+
return True
194196
arch = platform.machine()
195197
return arch in ["arm64", "aarch64", "ARM64"]
196198

0 commit comments

Comments
 (0)