Skip to content

Commit

Permalink
Find .o files in src/Makefile for Lua 5.1.5 and 5.2.4
Browse files Browse the repository at this point in the history
The Lua GitHub repository doesn't have tags for the 5.1.5 and 5.2.4
releases(see lua/lua#16 (comment)).
And the source files downloaded from https://www.lua.org/ftp have
different directory layout.
  • Loading branch information
xxyzz committed Apr 6, 2023
1 parent 2cf8ea2 commit 9b029e2
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")
# 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):
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 9b029e2

Please sign in to comment.