forked from dmcooke/Lunatic-Python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
34 lines (31 loc) · 1.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/python
from distutils.core import setup, Extension
import os
if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")
# You may have to change these
LUA_LIBS = ["lua"]
LUA_INCDIR = ["/opt/local/include"]
LUA_LIBDIR = ["/opt/local/lib"]
setup(name="lunatic-python",
version = "1.0",
description = "Two-way bridge between Python and Lua",
author = "Gustavo Niemeyer",
author_email = "[email protected]",
url = "http://labix.org/lunatic-python",
license = "LGPL",
long_description =
"""\
Lunatic Python is a two-way bridge between Python and Lua, allowing these
languages to intercommunicate. Being two-way means that it allows Lua inside
Python, Python inside Lua, Lua inside Python inside Lua, Python inside Lua
inside Python, and so on.
""",
ext_modules = [
Extension("lua",
["src/pythoninlua.c", "src/luainpython.c"],
include_dirs=LUA_INCDIR,
library_dirs=LUA_LIBDIR,
libraries=LUA_LIBS),
],
)