Skip to content

Commit 725399b

Browse files
committed
Elaborated installation instructions in readme
1 parent 0a4e7f3 commit 725399b

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,29 @@ This is a fork of Lunatic Python, which can be found on the 'net at http://labix
1010

1111
Sadly, Lunatic Python is very much outdated and won't work with either a current Python or Lua.
1212

13-
This is an updated version of lunatic-python that works with Python 2.7-3.x and Lua 5.1-5.3.
13+
This is an updated version of lunatic-python that works with Python 2.7-3.x and Lua 5.1-5.5.
1414
I tried contacting the original author of Lunatic Python, but got no response.
1515

1616
Installing
1717
----------
1818

19-
To install, you will need to have the Python and Lua development libraries on your system. If you
20-
do, use the recommended methods (`pip`, `easy-install`, etc) to install lunatic-python.
19+
> To install, you will need to have the Python and Lua development libraries on your system.
20+
21+
Lunatic Python is available via the [Luarocks](https://luarocks.org/modules/leso-kn/lunatic-python) package manager.
22+
For using the Python variant (Lua in Python) you can install this repository as described below.
23+
24+
Use one of the recommended methods (`luarocks`, `pip`, `easy-install`, etc) to install lunatic-python:
25+
26+
```bash
27+
# For Python in Lua (Luarocks)
28+
> luarocks install lunatic-python
29+
30+
# For Lua in Python (Option 1: pip)
31+
> pip install git+https://github.com/bastibe/lunatic-python
32+
33+
# For Lua in Python (Option 2: easy-install)
34+
> easy_install git+https://github.com/bastibe/lunatic-python
35+
```
2136

2237
This version has been modified to compile under Ubuntu. I haven't tested it under other
2338
distributions, your mileage may vary.

0 commit comments

Comments
 (0)