Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Packaging Python Scripts as Windows Executables

A topic by Carter15 created 45 days ago Views: 110 Replies: 5
Viewing posts 1 to 4
Submitted (1 edit)

For those of you who are new to working with Python for Game Dev, I recommend using auto-py-to-exe (https://pypi.org/project/auto-py-to-exe/). I've been making games in python for the last 10 years and I've been using this for at least 5. Very helpful.

Using this application you can convert a Python project into an executable that runs on any windows machine. Just make sure to mark the output as "One File" instead of "One Directory".

That way we don't have to build/run your project from source (i.e. run the source code in an IDE), we can just extract and run.

Host (1 edit)

Well i aint new ive been using godot, Mu editor, and Idle for 5 years now

I'd prefer if you also publish the source code

Submitted

Good point, I guess Linux and Mac would be left out if there's just a Windows EXE. Woops

Submitted

Cool! I use pyinstaller for that

Submitted

I think autopy is just a graphical version of pyinstaller. If you don't want to bother with the command line, autopy generates the same pyinstaller commands + arguments and runs them automatically.