-
Notifications
You must be signed in to change notification settings - Fork 20
Python Bindings
Jan Niklas Hasse edited this page Jan 19, 2021
·
3 revisions
JNGL had bindings to Python 3, but they were discontinued, as it is quite hard to get them to work on iOS, Android or consoles like the Switch.
You can still build them by switching to the python branch:
sudo apt install python3-dev pybind11-dev # Debian/Ubuntu
git switch python
meson build-python -Dpython=true
sudo ninja -Cbuild-python install
When installing you should see a log message similar to this:
Installing jngl.so to /usr/local/lib64/python3.6/site-packages/jngl.so
Which means you are ready to use JNGL from Python 3. That's it, now import jngl
should work!
-
Somyeol2D
Platformer created for the Global Game Jam 2011 -
Tudi
Platformer created for a 10 days coding competition in 2009
Download and install Python 3.6 (32 bit) for Windows from here (direct link to the web-based installer). Then install JNGL for Python from the release page.