Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I wrote a Python game in for a group project using Pygame. Now we wanted to package it into an executable but I can't seem to do it. When I was working with C# through Microsoft Visual Studio it had a really simple publish feature. Is there an editor that can do that for Python with external libraries?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

I've had luck compiling to executable using PyInstaller. Another possibility, as Luiz mentions, is py2exe.

Both of these tools have options to bundle all of the python libraries into the executable if you want, making it easy to distribute. Either of these might have issues with whatever libraries you might be using, so it might be easiest to check the forum of the libraries you're using to see if they have a recommendation.

share|improve this answer

Well, I'm really new in Python's World. But maybe py2exe can help you.

share|improve this answer
    
when I was googling this I heard about some problems that I really didn't understand enough to re-explain them, but if there's another option I would prefer it! Thanks though, I'll select your answer if no other choices come out –  TMP Jul 27 '12 at 17:25

The technical part of publishing is described correctly in Luiz's answer, but publishing also involves licensing your game, usually. For that, I suggest you use the Mit license, if you plan to make it unprofitable and aopen-source.

share|improve this answer
1  
i should have specified, i plan to just distribute it to friends and don't mind if code is taken from it without acknowledgement –  TMP Jul 27 '12 at 18:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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