Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made changes to install cleanly under Ubuntu.

  • Loading branch information...
commit bd421e4cbc628e217e5e1334f7bf524b15168b0a 1 parent 1c82340
Stavros Korokithakis authored April 29, 2012

Showing 2 changed files with 5 additions and 22 deletions. Show diff stats Hide diff stats

  1. 21  README.md
  2. 6  setup.py
21  README.md
Source Rendered
@@ -14,22 +14,5 @@ Installing
14 14
 To install, you will need to have the Python and Lua development libraries on your system. If you
15 15
 do, use the recommended methods (```pip```, ```easy-install```, etc) to install lunatic-python.
16 16
 
17  
-On some versions of Ubuntu, installation might fail with error messages. If it does, make sure
18  
-```lualib5.1-0-dev``` and ```python-dev``` are installed, and change the two lines from:
19  
-
20  
-    extra_compile_args=["-rdynamic"],
21  
-
22  
-to:
23  
-
24  
-
25  
-    extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
26  
-
27  
-If it complains about a missing ```lua``` or ``lualib```, change the line:
28  
-
29  
-    LUALIBS = ["lua"]
30  
-
31  
-to:
32  
-
33  
-    LUALIBS = ["lua5.1"]
34  
-
35  
-and it should compile cleanly.
  17
+This version has been modified to compile under Ubuntu. I haven't tested it under other
  18
+distributions, your mileage may vary.
6  setup.py
@@ -9,7 +9,7 @@
9 9
 # You may have to change these
10 10
 PYLIBS = ["python"+get_python_version(), "pthread", "util"]
11 11
 PYLIBDIR = [get_python_lib(standard_lib=True)+"/config"]
12  
-LUALIBS = ["lua"]
  12
+LUALIBS = ["lua5.1"]
13 13
 LUALIBDIR = []
14 14
 
15 15
 setup(name="lunatic-python",
@@ -31,13 +31,13 @@
31 31
                                ["src/pythoninlua.c", "src/luainpython.c"],
32 32
                                library_dirs=PYLIBDIR,
33 33
                                libraries=PYLIBS,
34  
-                               extra_compile_args=["-rdynamic"],
  34
+                               extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
35 35
                                extra_link_args=["-rdynamic"]),
36 36
                      Extension("lua",
37 37
                                ["src/pythoninlua.c", "src/luainpython.c"],
38 38
                                library_dirs=LUALIBDIR,
39 39
                                libraries=LUALIBS,
40  
-                               extra_compile_args=["-rdynamic"],
  40
+                               extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
41 41
                                extra_link_args=["-rdynamic"]),
42 42
                     ],
43 43
       )

0 notes on commit bd421e4

Please sign in to comment.
Something went wrong with that request. Please try again.