Packaging a python game
OK - a question from my son really - at 11 he's really got into python programming. He's just written his first game in python 2.5 using SPE. this compiles and runs OK providing python is loaded to the machine.
Now he wants to share copies of his game on a disk with his friends... how can he package this ?? - is it possible to create /export as an exe that can run independant of python ?? - or do his friends need to import the whole python application suite just to run the game..
I'm afraid I'm just a know nothing Dad when it comes to this, so I'm hoping someone out there will know what he can do
Thanks Lux - when we downloaded python for my son we downloaded ver 2.5 which now seems a bit out of date, but was the package suggested by the book he was using to teach himself with. I've found a version which seems to be 2.5 compatible, but struggling to get it to load.
Originally Posted by Lux Perpetua
Is there an upgrade path to 2.6 ?? -
June 11th, 2012, 03:58 PM
I've never written code on Python 2.x and had it break on a more recent Python 2.y. The versions of Python 2 are generally backwards-compatible with one another. Features do get deprecated and removed, but not without warnings. If your son's code doesn't generate any deprecation warnings, then you could try installing 2.7 and seeing if his code still works. If it doesn't work, then I recommend trying to fix the code, since Python 2.5 is outdated and is no longer supported.
June 11th, 2012, 04:20 PM
I think we'll give that a go - appreciate the advice