Skip to content

Commit 473d97f

Browse files
authored
Add instructions for building with bundled lua (GH-148)
1 parent 831599a commit 473d97f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

INSTALL.rst

+14-6
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,20 @@ Building with LuaJIT2
7070
Building with Lua 5.x
7171
---------------------
7272

73-
Reportedly, it also works to use Lupa with the standard (non-JIT) Lua
74-
runtime. To that end, install Lua 5.x instead of LuaJIT2, including
75-
any development packages (header files etc.).
73+
It also works to use Lupa with the standard (non-JIT) Lua
74+
runtime. The easiest way is to use the bundled lua submodule:
7675

77-
On systems that use the "pkg-config" configuration mechanism, Lupa's
76+
#) Clone the submodule::
77+
78+
$ git submodule update --init third-party/lua
79+
80+
#) Build Lupa::
81+
82+
$ python3 setup.py bdist_wheel --use-bundle --with-cython
83+
84+
You can also build it by installing a Lua 5.x package, including
85+
any development packages (header files etc.). On systems that
86+
use the "pkg-config" configuration mechanism, Lupa's
7887
setup.py will pick up either LuaJIT2 or Lua automatically, with a
7988
preference for LuaJIT2 if it is found. Pass the ``--no-luajit`` option
8089
to the setup.py script if you have both installed but do not want to
@@ -88,7 +97,7 @@ LuaJIT2 nor Lua are found automatically.
8897

8998
For further information, read this mailing list post:
9099

91-
http://article.gmane.org/gmane.comp.python.lupa.devel/31
100+
https://www.freelists.org/post/lupa-dev/Lupa-with-normal-Lua-interpreter-Lua-51,2
92101

93102

94103
Installing lupa from packages
@@ -132,4 +141,3 @@ OS X + Lua 5.2 + Homebrew
132141
#) Install lupa::
133142

134143
$ pip install lupa
135-

0 commit comments

Comments
 (0)