Skip to content

Commit

Permalink
Fix Makefile path for Lua 5.1.5
Browse files Browse the repository at this point in the history
The Lua GitHub repository doesn't have the 5.1.5 tag, and the code
downloaded from https://www.lua.org/ftp has different directory layout.
  • Loading branch information
xxyzz committed Apr 12, 2023
1 parent 64222f7 commit c468c4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ def use_bundled_lua(path, macros):

# Parse .o files from 'makefile'
makefile = os.path.join(path, "makefile")
if 'lua51' in path:
# Lua 5.1.5 source code is downloaded from lua.org/ftp
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 c468c4e

Please sign in to comment.