Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/usr/bin/python

import sys
import os
import sys

if sys.version > '3':
PY3 = True
else:
PY3 = False
PY3 = sys.version_info >= (3, 0)

if PY3:
import subprocess as commands
Expand Down Expand Up @@ -68,7 +65,10 @@ def pkgconfig(*packages):

return kwargs

lua_pkgconfig = pkgconfig('lua' + LUAVERSION, 'python-' + PYTHONVERSION)
if sys.platform == "darwin": # macOS
lua_pkgconfig = pkgconfig('lua' + LUAVERSION)
else:
lua_pkgconfig = pkgconfig('lua' + LUAVERSION, 'python-' + PYTHONVERSION)
lua_pkgconfig['extra_compile_args'] = ['-I/usr/include/lua'+LUAVERSION, '-DPYTHON_LIBRT="' + str(PYTHON_LIBRT) + '"']

setup(name="lunatic-python",
Expand Down