Skip to content

Commit

Permalink
Let 'configs' refer to a list of configs also with "--no-bundle" and …
Browse files Browse the repository at this point in the history
…when no Lua is found.

Original patch by Richard Connon.

Closes #237
  • Loading branch information
scoder committed May 11, 2023
1 parent 6d02127 commit 19279ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,11 @@ def has_option(name):
or (get_machine() != "x86_64" and 'luajit' in os.path.basename(lua_bundle_path.rstrip(os.sep)))
)
]
if not configs and not option_use_bundle:
configs = find_lua_build(no_luajit=option_no_luajit)
if not configs:
configs = no_lua_error()
configs = [
(find_lua_build(no_luajit=option_no_luajit) if not option_use_bundle else {})
or no_lua_error()
]


# check if Cython is installed, and use it if requested or necessary
Expand Down

0 comments on commit 19279ac

Please sign in to comment.