Re: [pygame] pygame for portable python
I have updated surface.c, color.c, rect.c and surflock.c. The unit test framework has also been modified enough to get rect_test.py to run under Python 3.0. It passes. I also built the python3 branch with Python 2.6 for backwards compatibility confirmation. It passes all unit tests except color_test.py. Lenard Quoting Lenard Lindstrom le...@telus.net: Hello, Great. I will have to fix some Pygame api issues with base.c - I shouldn't have made PyErc_SDLError local - and will see about a better approach to module state in Python 3. As for Surface, I think bufferproxies should be disabled for Python 3 for now to avoid the changed buffer interface issue. I will look at it next. Lenard Quoting René Dudfield ren...@gmail.com: hi, fixed constants.c to compile and import and also did some work getting the testing framework, and makeref.py to work. cu, On Sun, Apr 12, 2009 at 10:31 PM, René Dudfield ren...@gmail.com wrote: Cool. I got config_unix.py working on ubuntu with that branch. Also base.c compiles and imports here too. On Sun, Apr 12, 2009 at 8:31 PM, Lenard Lindstrom le...@telus.net wrote: Hi, The branch is svn://seul.org/svn/pygame/branches/python3 . I have config.py, config_win.py and setup.py working with Python 3.0.1. I also updated base.c and __init__.py. I was able to build pygame.base with Python 3 and call pygame.base.init() and pygame.base.quit() and pygame.base.get_sdl_version(). Also, I built it with Python 2.6 to confirm backwards compatibility. This confirms that Python 3.0 can use the Python 2.6 prebuilts for Windows: http://www3.telus.net/len_l/pygame/prebuilt-pygame1.9.0-msvcr90-win32.zip I will port the config.py stuff back into the main branch soon. Lenard Quoting René Dudfield ren...@gmail.com: cool. I'll grab your branch and try to get it working on ubuntu. cu, On Sun, Apr 12, 2009 at 10:24 AM, Lenard Lindstrom le...@telus.net wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
Lenard Lindstrom wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard this would be great, because for my freshman programming course, i only need surfaces, image loading and mouse events. thats all you need for a simple baloon pop and arkanoid game.
Re: [pygame] pygame for portable python
Hi, The branch is svn://seul.org/svn/pygame/branches/python3 . I have config.py, config_win.py and setup.py working with Python 3.0.1. I also updated base.c and __init__.py. I was able to build pygame.base with Python 3 and call pygame.base.init() and pygame.base.quit() and pygame.base.get_sdl_version(). Also, I built it with Python 2.6 to confirm backwards compatibility. This confirms that Python 3.0 can use the Python 2.6 prebuilts for Windows: http://www3.telus.net/len_l/pygame/prebuilt-pygame1.9.0-msvcr90-win32.zip I will port the config.py stuff back into the main branch soon. Lenard Quoting René Dudfield ren...@gmail.com: cool. I'll grab your branch and try to get it working on ubuntu. cu, On Sun, Apr 12, 2009 at 10:24 AM, Lenard Lindstrom le...@telus.net wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
Cool. I got config_unix.py working on ubuntu with that branch. Also base.c compiles and imports here too. On Sun, Apr 12, 2009 at 8:31 PM, Lenard Lindstrom le...@telus.net wrote: Hi, The branch is svn://seul.org/svn/pygame/branches/python3 . I have config.py, config_win.py and setup.py working with Python 3.0.1. I also updated base.c and __init__.py. I was able to build pygame.base with Python 3 and call pygame.base.init() and pygame.base.quit() and pygame.base.get_sdl_version(). Also, I built it with Python 2.6 to confirm backwards compatibility. This confirms that Python 3.0 can use the Python 2.6 prebuilts for Windows: http://www3.telus.net/len_l/pygame/prebuilt-pygame1.9.0-msvcr90-win32.zip I will port the config.py stuff back into the main branch soon. Lenard Quoting René Dudfield ren...@gmail.com: cool. I'll grab your branch and try to get it working on ubuntu. cu, On Sun, Apr 12, 2009 at 10:24 AM, Lenard Lindstrom le...@telus.net wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
hi, fixed constants.c to compile and import and also did some work getting the testing framework, and makeref.py to work. cu, On Sun, Apr 12, 2009 at 10:31 PM, René Dudfield ren...@gmail.com wrote: Cool. I got config_unix.py working on ubuntu with that branch. Also base.c compiles and imports here too. On Sun, Apr 12, 2009 at 8:31 PM, Lenard Lindstrom le...@telus.net wrote: Hi, The branch is svn://seul.org/svn/pygame/branches/python3 . I have config.py, config_win.py and setup.py working with Python 3.0.1. I also updated base.c and __init__.py. I was able to build pygame.base with Python 3 and call pygame.base.init() and pygame.base.quit() and pygame.base.get_sdl_version(). Also, I built it with Python 2.6 to confirm backwards compatibility. This confirms that Python 3.0 can use the Python 2.6 prebuilts for Windows: http://www3.telus.net/len_l/pygame/prebuilt-pygame1.9.0-msvcr90-win32.zip I will port the config.py stuff back into the main branch soon. Lenard Quoting René Dudfield ren...@gmail.com: cool. I'll grab your branch and try to get it working on ubuntu. cu, On Sun, Apr 12, 2009 at 10:24 AM, Lenard Lindstrom le...@telus.net wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
Hello, Great. I will have to fix some Pygame api issues with base.c - I shouldn't have made PyErc_SDLError local - and will see about a better approach to module state in Python 3. As for Surface, I think bufferproxies should be disabled for Python 3 for now to avoid the changed buffer interface issue. I will look at it next. Lenard Quoting René Dudfield ren...@gmail.com: hi, fixed constants.c to compile and import and also did some work getting the testing framework, and makeref.py to work. cu, On Sun, Apr 12, 2009 at 10:31 PM, René Dudfield ren...@gmail.com wrote: Cool. I got config_unix.py working on ubuntu with that branch. Also base.c compiles and imports here too. On Sun, Apr 12, 2009 at 8:31 PM, Lenard Lindstrom le...@telus.net wrote: Hi, The branch is svn://seul.org/svn/pygame/branches/python3 . I have config.py, config_win.py and setup.py working with Python 3.0.1. I also updated base.c and __init__.py. I was able to build pygame.base with Python 3 and call pygame.base.init() and pygame.base.quit() and pygame.base.get_sdl_version(). Also, I built it with Python 2.6 to confirm backwards compatibility. This confirms that Python 3.0 can use the Python 2.6 prebuilts for Windows: http://www3.telus.net/len_l/pygame/prebuilt-pygame1.9.0-msvcr90-win32.zip I will port the config.py stuff back into the main branch soon. Lenard Quoting René Dudfield ren...@gmail.com: cool. I'll grab your branch and try to get it working on ubuntu. cu, On Sun, Apr 12, 2009 at 10:24 AM, Lenard Lindstrom le...@telus.net wrote: Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). Regards Marcus pgpM8zOi3tbyf.pgp Description: PGP signature
Re: [pygame] pygame for portable python
Quoting Marcus von Appen m...@sysfault.org: On, Sat Apr 11, 2009, Rene Dudfield wrote: Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. It has a less messy internal API, though :-). I think we could get a minimal Pygame ready: base, surface, mixer, image, gfxdraw. I have access to an XP box for the next few days so will fork off a python3 branch and see if I can get something to work for Windows. But don't let that stop anyone else from adapting Pygame to Python 3. We can merge things back later. Lenard -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
hi René, first, i introduce them to k-turtle, a logo variant and the probably most easiest way to get into programming. moving that turtle on-screen and drawing simple geometric things is quite intuitive. then, after 4 sessions ( 1 session per week) i switch to python using python portable. python portable is fantastic: i can put it on a network drive, they can put it on their usb-stick and do their homeworks where-ever they like and dont have to install anything. after some python basics (what is the interactive command line, how to print hello, how to add some numbers, how to calculate a mean value over numbers etc) i just start over with turtle using pythons turtle graphics. this is good - its a recapitulation and they might get the idea that you can do same things with different computer languages - so it doesnt really matter what language you actually speak. so - i understand your point that most modules are not yet python 3 ready, but i only use pyturtle and pygame. and its a very basic total beginners course, so they wont encounter any great differences between 2.x and 3.0 in codebooks, as i only teach very fundamentals like variables, loops etc. its a course for university freshman. ok, long writing, short message: i would need pygame for 3.0 in about 4-5 weeks. thank you very much ! René Dudfield wrote: Hi, python 3.0 is *not* so good to teach. Most of the available tutorials, and books use 2.x. Most of the available code uses 2.x Major modules like numpy, pyopengl, and 5000+ other modules are not ready for python3 yet. It's just not ready yet (even the python developers say that). However, when are you teaching it? We might be able to get a python3 release of pygame ready in time. cheers, On Fri, Apr 10, 2009 at 6:58 AM, Andre Krause p...@andre-krause.net mailto:p...@andre-krause.net wrote: dear list, i need pygame for www.portablepython.com http://www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? i tried installing the binary release: pygame-1.8.1.win32-py2.6.msi ~ 1.4M (python2.5.4 is the best python on windows at the moment) would it help if i would try a svn - nightly build version ? currently, i get the error message: Traceback (most recent call last): File string, line 248, in run_nodebug File C:\Dokumente und Einstellungen\herc\Eigene Dateien\module1.py, line 2, in module from pygame import * File c:\PortablePython3\App\lib\site-packages\pygame\__init__.py, line 70 raise NotImplementedError, MissingPygameModule ^ SyntaxError: invalid syntax kind regards and thanks in advance !
Re: [pygame] pygame for portable python
Yeah cool. I think it will give me a good push to finish off more tests as we change towards py3k. The sprite module is missing tests for a lot of the older sprite functionality. So that's the major one of the .py files I think. Our build scripts, and tests are the other major .py files. If we start back porting some of the pgreloaded py3k stuff, then I think we can have a pygame 1.9 prerelease for py3k within 4 weeks time(in time for the course). Remember, it only took Marcus a few days to port pgreloaded. cheers, On Fri, Apr 10, 2009 at 11:32 AM, Lenard Lindstrom le...@telus.net wrote: I would agree that Python 2.6 is more appropriate at the moment. Jython, for instance, is still at 2.5 beta. And many games depend on pyopengl at the minimum. As for releasing a Python 3.0 version of Pygame, that could be a problem if two versions of the .py modules must be kept. Since one goal for Pygame 1.9 is to have extensive unit tests ready, and therefore completing a major bug hunt in Pygame, it would be best to wait until after that is done. But yes, we can start readying Pygame for Python 3 by backporting pgreloaded's cross-compatibility tools. Lenard René Dudfield wrote: Hi, python 3.0 is *not* so good to teach. Most of the available tutorials, and books use 2.x. Most of the available code uses 2.x Major modules like numpy, pyopengl, and 5000+ other modules are not ready for python3 yet. It's just not ready yet (even the python developers say that). However, when are you teaching it? We might be able to get a python3 release of pygame ready in time. cheers, On Fri, Apr 10, 2009 at 6:58 AM, Andre Krause p...@andre-krause.netmailto: p...@andre-krause.net wrote: dear list, i need pygame for www.portablepython.com http://www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? i tried installing the binary release: pygame-1.8.1.win32-py2.6.msi ~ 1.4M (python2.5.4 is the best python on windows at the moment) would it help if i would try a svn - nightly build version ? currently, i get the error message: Traceback (most recent call last): File string, line 248, in run_nodebug File C:\Dokumente und Einstellungen\herc\Eigene Dateien\module1.py, line 2, in module from pygame import * File c:\PortablePython3\App\lib\site-packages\pygame\__init__.py, line 70 raise NotImplementedError, MissingPygameModule ^ SyntaxError: invalid syntax kind regards and thanks in advance ! -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
On, Thu Apr 09, 2009, Andre Krause wrote: dear list, i need pygame for www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? No, but the pgreloaded branch is. It lacks some documentation, examples and testing, though. Regards Marcus pgp4r0l3CeNO0.pgp Description: PGP signature
Re: [pygame] pygame for portable python
Hi, python 3.0 is *not* so good to teach. Most of the available tutorials, and books use 2.x. Most of the available code uses 2.x Major modules like numpy, pyopengl, and 5000+ other modules are not ready for python3 yet. It's just not ready yet (even the python developers say that). However, when are you teaching it? We might be able to get a python3 release of pygame ready in time. cheers, On Fri, Apr 10, 2009 at 6:58 AM, Andre Krause p...@andre-krause.net wrote: dear list, i need pygame for www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? i tried installing the binary release: pygame-1.8.1.win32-py2.6.msi ~ 1.4M (python2.5.4 is the best python on windows at the moment) would it help if i would try a svn - nightly build version ? currently, i get the error message: Traceback (most recent call last): File string, line 248, in run_nodebug File C:\Dokumente und Einstellungen\herc\Eigene Dateien\module1.py, line 2, in module from pygame import * File c:\PortablePython3\App\lib\site-packages\pygame\__init__.py, line 70 raise NotImplementedError, MissingPygameModule ^ SyntaxError: invalid syntax kind regards and thanks in advance !
Re: [pygame] pygame for portable python
Andre Krause wrote: Marcus von Appen wrote: On, Thu Apr 09, 2009, Andre Krause wrote: dear list, i need pygame for www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? No, but the pgreloaded branch is. It lacks some documentation, examples and testing, though. Regards Marcus thank you for fast replying. question: would it work to download the branch using svn, and then just use the dlls (SDL.dll, jpeg.dll , etc) from the official binary releases of pygame ? (maybe i should just test instead asking ;-) ) thanks anyway for pointing me to the pgreloaded branch. The Python 2.6 Pygame dependencies are compatible with Python 3. I hope to have a new Pygame installer for 2.6 shortly, with updated dependencies if necessary. As for using Pygame prebuilts with pgreloaded I have had no luck, though it looks like it should use them when available. -- Lenard Lindstrom le...@telus.net
Re: [pygame] pygame for portable python
I would agree that Python 2.6 is more appropriate at the moment. Jython, for instance, is still at 2.5 beta. And many games depend on pyopengl at the minimum. As for releasing a Python 3.0 version of Pygame, that could be a problem if two versions of the .py modules must be kept. Since one goal for Pygame 1.9 is to have extensive unit tests ready, and therefore completing a major bug hunt in Pygame, it would be best to wait until after that is done. But yes, we can start readying Pygame for Python 3 by backporting pgreloaded's cross-compatibility tools. Lenard René Dudfield wrote: Hi, python 3.0 is *not* so good to teach. Most of the available tutorials, and books use 2.x. Most of the available code uses 2.x Major modules like numpy, pyopengl, and 5000+ other modules are not ready for python3 yet. It's just not ready yet (even the python developers say that). However, when are you teaching it? We might be able to get a python3 release of pygame ready in time. cheers, On Fri, Apr 10, 2009 at 6:58 AM, Andre Krause p...@andre-krause.net mailto:p...@andre-krause.net wrote: dear list, i need pygame for www.portablepython.com http://www.portablepython.com i need it for teaching programming to total beginners. i choose python 3.0.1 version of portable python, because it avoids some problems that would confuse programming beginners ( for example the integer division problem) later in the course i introduce pygame and let them program a very simple breakout like game and a baloon pop game. question: is pygame already compatible with python 3.0.1 ? i tried installing the binary release: pygame-1.8.1.win32-py2.6.msi ~ 1.4M (python2.5.4 is the best python on windows at the moment) would it help if i would try a svn - nightly build version ? currently, i get the error message: Traceback (most recent call last): File string, line 248, in run_nodebug File C:\Dokumente und Einstellungen\herc\Eigene Dateien\module1.py, line 2, in module from pygame import * File c:\PortablePython3\App\lib\site-packages\pygame\__init__.py, line 70 raise NotImplementedError, MissingPygameModule ^ SyntaxError: invalid syntax kind regards and thanks in advance ! -- Lenard Lindstrom le...@telus.net