Skip to content

Instantly share code, notes, and snippets.

@aisurfer
Created July 19, 2017 00:38
Show Gist options
  • Save aisurfer/ea5579a4e136652616628d707582e6bd to your computer and use it in GitHub Desktop.
Save aisurfer/ea5579a4e136652616628d707582e6bd to your computer and use it in GitHub Desktop.
lunatic-python installation
https://github.com/bastibe/lunatic-python
https://stackoverflow.com/questions/20400390/how-to-call-a-python-function-from-lua
git clone https://github.com/bastibe/lunatic-python.git
sudo apt-get install python2.7-dev
sudo apt-get install lua5.2
sudo apt-get install lua5.2-dev
pkg-config --cflags python-2.7
sudo python setup.py install
thats it!
@aisurfer
Copy link
Author

fix module .so load
package.loadlib("libpython2.7.so", "")
python = require("lua-python", "
")

bastibe/lunatic-python#17 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment