Building a Kivy standalone executable with Nuitka

365 views
Skip to first unread message

Josh C.

unread,
Sep 2, 2018, 8:24:28 AM9/2/18
to Kivy users support
Hello everyone,

I would like to know if anyone has had success by building a Python-Kivy standalone executable application with Nuitka.
I tried to follow this guide, without success. And honestly, never using Nuitka or any similar tool before, I didn't really know what I was doing.
My application has a couple of .py and a couple of .kv resource files, and also uses a few Python standard library modules.

I will be very grateful if someone who has had success with building an executable with Nuitka shares the procedure or any sort of helpful tips.

Thank you and best regards,
Josh C

QuanTech

unread,
Sep 2, 2018, 9:50:24 PM9/2/18
to Kivy users support
If you are targeting Windows, you can try PyInstaller.

Josh C.

unread,
Sep 3, 2018, 3:41:51 PM9/3/18
to Kivy users support
Thank you for your reply.
Yes, I am targeting Windows. I have also considered PyInstaller.
But Nuitka seems to be able to compile all code to exe and dlls. Unlike PyInstaller which compiles Python sources to .pyc and .pyd only.
Or am I mistaken?
Regards

Dne ponedeljek, 03. september 2018 03.50.24 UTC+2 je oseba QuanTech napisala:

QuanTech

unread,
Sep 3, 2018, 7:18:39 PM9/3/18
to Kivy users support
With '-F' option, PyInstaller can create a one-file bundled executable(.exe), but I never tried dlls.
Have a look at its manual:
It looks very versatile.
Reply all
Reply to author
Forward
0 new messages