diff --git a/pyproject.toml b/pyproject.toml index 47efe18e..52ee5310 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex- [tool.cibuildwheel.windows] archs = ["AMD64", "x86"] -test-command = "python -c \"import lupa\" && python -c \"import lupa.lua54\" && python -c \"import lupa.luajit21\" " +test-command = "python -c 'import lupa' && python -c 'import lupa.lua54' && python -c 'import lupa.luajit21' " [tool.cibuildwheel.macos] # https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide diff --git a/setup.py b/setup.py index a2186e58..d07f8cbf 100644 --- a/setup.py +++ b/setup.py @@ -367,7 +367,7 @@ def has_option(name): or (platform == 'darwin' and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep))) # Couldn't get the Windows build to work. See # https://luajit.org/install.html#windows - or (get_machine() != "AMD64" and get_machine() != "x86_64" and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep))) + or (get_machine() not in ("AMD64", "x86_64") and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep))) # Let's restrict LuaJIT to x86_64 for now. or (get_machine() not in ("x86_64", "AMD64") and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep))) )