Skip to content

Commit 4ae689a

Browse files
committed
Exclude non-x86_64 architectures from bundling LuaJIT in the wheel.
1 parent c7d22cf commit 4ae689a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from glob import iglob
1212
from io import open as io_open
1313
from sys import platform
14+
from platform import machine as get_machine
1415

1516
try:
1617
# use setuptools if available
@@ -360,6 +361,8 @@ def has_option(name):
360361
# Couldn't get the Windows build to work. See
361362
# https://luajit.org/install.html#windows
362363
or (platform.startswith('win') and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
364+
# Let's restrict LuaJIT to x86_64 for now.
365+
or (get_machine() != "x86_64" and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
363366
)
364367
]
365368
if not configs and not option_use_bundle:

0 commit comments

Comments
 (0)