I'm developing a game in Python with Kivy as the gui. I've heard a few programs mentioned that compile python files to .exe's. However, I cant seem to find any that mention compiling .py and .kv files.

I wish to eventually publish my game to Steam Direct but i would like to know if my current approach to coding the game will hinder me doing so.

My actual question is, is there a way to compile a Python game with Kivy to an .exe file?

  • 2
    \$\begingroup\$ Gamedev SE typically does not welcome questions about which technologies to use in your game. However, it sounds like what you're really asking is either "Is there a way to compile a Python game with Kivy to an .exe file?" or "Can Python games be distributed on Steam?". I would suggest rewording the question to be more specific. \$\endgroup\$ – User not found Nov 6 '17 at 20:17
  • \$\begingroup\$ You didn't even tried to search the answer on the web? Yes, there is a way to compile Python. askubuntu.com/questions/324871/how-to-compile-a-python-file \$\endgroup\$ – Ocelot Nov 7 '17 at 5:59
  • \$\begingroup\$ im not asking how to compile python, im asking how to compile python when using kivy and kivy files \$\endgroup\$ – mast3rd3mon Nov 7 '17 at 8:43

In the end, i found the answer hidden within their docs https://kivy.org/docs/guide/packaging-windows.html

You then need to set console=True to console=False within the .spec file to disable the console from being shown. Once you create the .spec file, you will see which line it is

|improve this answer|||||
  • 2
    \$\begingroup\$ ill accept it as the right answer when it lets me so others can find it \$\endgroup\$ – mast3rd3mon Nov 7 '17 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.