diff --git a/setup.py b/setup.py index 1f0a6023..b855d64e 100644 --- a/setup.py +++ b/setup.py @@ -264,7 +264,7 @@ def use_bundled_lua(path, macros): # Parse .o files from 'makefile' makefile = os.path.join(path, "makefile") # Source code of Lua 5.1.5 and 5.2.4 are downloaded from https://www.lua.org/ftp - if not os.path.exists(makefile): + if 'lua51' in path or 'lua52' in path: makefile = os.path.join(path, "src", "Makefile") match_var = re.compile(r"(CORE|AUX|LIB|ALL)_O\s*=(.*)").match is_indented = re.compile(r"\s+").match