forked from bastibe/lunatic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·43 lines (40 loc) · 1.69 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
35
36
37
38
39
40
41
42
43
#!/usr/bin/python
from distutils.core import setup, Extension
from distutils.sysconfig import get_python_lib, get_python_version
import os
if os.path.isfile("MANIFEST"):
os.unlink("MANIFEST")
# You may have to change these
PYLIBS = ["python"+get_python_version(), "pthread", "util"]
PYLIBDIR = [get_python_lib(standard_lib=True)+"/config"]
LUALIBS = ["lua5.1"]
LUALIBDIR = []
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-python",
["src/pythoninlua.c", "src/luainpython.c"],
library_dirs=PYLIBDIR,
libraries=PYLIBS,
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", "-I/usr/include/lua5.1"],
extra_link_args=["-rdynamic"]),
],
)