Skip to content

Commit

Permalink
Use the src/Makefile file if lua51 or lua52 in path
Browse files Browse the repository at this point in the history
Windows file paths are not case-sensitive. Damn.
  • Loading branch information
xxyzz committed Apr 6, 2023
1 parent 6e6c670 commit bf4c5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf4c5f2

Please sign in to comment.