Permalink
Browse files

Made changes to install cleanly under Ubuntu.

  • Loading branch information...
1 parent 1c82340 commit bd421e4cbc628e217e5e1334f7bf524b15168b0a @skorokithakis committed Apr 29, 2012
Showing with 5 additions and 22 deletions.
  1. +2 −19 README.md
  2. +3 −3 setup.py
View
21 README.md
@@ -14,22 +14,5 @@ Installing
To install, you will need to have the Python and Lua development libraries on your system. If you
do, use the recommended methods (```pip```, ```easy-install```, etc) to install lunatic-python.
-On some versions of Ubuntu, installation might fail with error messages. If it does, make sure
-```lualib5.1-0-dev``` and ```python-dev``` are installed, and change the two lines from:
-
- extra_compile_args=["-rdynamic"],
-
-to:
-
-
- extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
-
-If it complains about a missing ```lua``` or ``lualib```, change the line:
-
- LUALIBS = ["lua"]
-
-to:
-
- LUALIBS = ["lua5.1"]
-
-and it should compile cleanly.
+This version has been modified to compile under Ubuntu. I haven't tested it under other
+distributions, your mileage may vary.
View
6 setup.py
@@ -9,7 +9,7 @@
# You may have to change these
PYLIBS = ["python"+get_python_version(), "pthread", "util"]
PYLIBDIR = [get_python_lib(standard_lib=True)+"/config"]
-LUALIBS = ["lua"]
+LUALIBS = ["lua5.1"]
LUALIBDIR = []
setup(name="lunatic-python",
@@ -31,13 +31,13 @@
["src/pythoninlua.c", "src/luainpython.c"],
library_dirs=PYLIBDIR,
libraries=PYLIBS,
- extra_compile_args=["-rdynamic"],
+ extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
extra_link_args=["-rdynamic"]),
Extension("lua",
["src/pythoninlua.c", "src/luainpython.c"],
library_dirs=LUALIBDIR,
libraries=LUALIBS,
- extra_compile_args=["-rdynamic"],
+ extra_compile_args=["-rdynamic", "-I/usr/include/lua5.1"],
extra_link_args=["-rdynamic"]),
],
)

0 comments on commit bd421e4

Please sign in to comment.