Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
René Dudfield wrote: On Fri, Jul 10, 2009 at 2:25 PM, Lenard Lindstrom le...@telus.net mailto:le...@telus.net wrote: Hi, python -m pygame.tests.__main__ python -m pygame.docs.__main__ There would be no reason to run pygame.examples, right? Yeah, maybe __main__ is good. Perhaps pygame.tests should have a __main__ function too? import pygame.tests pygame.tests.main() Since main() is what is used in the examples, it would be nice to try and keep it the same. But then we need to add a main.py and a __main__.py... ew. You can do a self test with: python -m pygame.tests Or with python2.6 do: python -m pygame.tests.__main__ Doing it for examples could list which examples are available? $ python -m pygame.examples aacircle aliens arraydemo blend_fill blit_blends camera chimp cursors eventlist fastevents fonty glcube headless_no_windows_needed liquid mask midi moveit movieplayer oldalien overlay pixelarray scaletest scrap_clipboard scroll sound sound_array_demos stars testsprite vgrade eg. See a list of examples... python -m pygame.examples Or with python2.6, python -m pygame.examples.__main__ Run one of the 30 examples included... python -m pygame.examples.aliens I'm not sure anyone would remember to add __main__ at the end(or even main). oh well. There might be a workaround... One work around might be to make it into a module-module, not a package-module. Then have the module-module load the package-module into its namespace. The explanation I found was that being able to run a package in Python 2.5 was considered a bug, so was fixed in Python 2.6. Adding __main__.py as an entry point for running a package in Python 2.7 and 3.0 is an attempt repair the fix. Lenard
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
main() was used to run an application from the command line: python -c from pygame.examples.midi import main; main() --list It was replaced with: python -m pygame.examples.midi --list pygame.tests does have a documented run() function that takes optional arguments. But pygame.tests could have a main function as well. Lenard René Dudfield wrote: On Fri, Jul 10, 2009 at 2:25 PM, Lenard Lindstrom le...@telus.net mailto:le...@telus.net wrote: Hi, python -m pygame.tests.__main__ python -m pygame.docs.__main__ There would be no reason to run pygame.examples, right? Yeah, maybe __main__ is good. Perhaps pygame.tests should have a __main__ function too? import pygame.tests pygame.tests.main() Since main() is what is used in the examples, it would be nice to try and keep it the same. But then we need to add a main.py and a __main__.py... ew. You can do a self test with: python -m pygame.tests Or with python2.6 do: python -m pygame.tests.__main__ Doing it for examples could list which examples are available? $ python -m pygame.examples aacircle aliens arraydemo blend_fill blit_blends camera chimp cursors eventlist fastevents fonty glcube headless_no_windows_needed liquid mask midi moveit movieplayer oldalien overlay pixelarray scaletest scrap_clipboard scroll sound sound_array_demos stars testsprite vgrade eg. See a list of examples... python -m pygame.examples Or with python2.6, python -m pygame.examples.__main__ Run one of the 30 examples included... python -m pygame.examples.aliens I'm not sure anyone would remember to add __main__ at the end(or even main). oh well. There might be a workaround... One work around might be to make it into a module-module, not a package-module. Then have the module-module load the package-module into its namespace. The explanation I found was that being able to run a package in Python 2.5 was considered a bug, so was fixed in Python 2.6. Adding __main__.py as an entry point for running a package in Python 2.7 and 3.0 is an attempt repair the fix. Lenard
[pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
Hi everyone, Here is the latest Pygame 1.9.0 (rev 2500) for Python 2.6 on Windows. Though the machine this was compiled on has a firewall and active antivirus program, it uses XP and is not mine, so take whatever precautions you feel necessary. The msi installer is: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03win32-py2.6.msi md5sum: e247f69466be1f847c875794cc01d173 There is no corresponding Python 3.1 version. A distutils bug, absent in Python 3.0 and fixed in Python 2.6.2, prevents compilation with MinGW. Enjoy, Lenard Lindstrom
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
Hello, awesome. I'll put it up with the other rc3 stuff. typo with the link: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03.win32-py2.6.msi cheers! On Fri, Jul 10, 2009 at 8:15 AM, Lenard Lindstrom le...@telus.net wrote: Hi everyone, Here is the latest Pygame 1.9.0 (rev 2500) for Python 2.6 on Windows. Though the machine this was compiled on has a firewall and active antivirus program, it uses XP and is not mine, so take whatever precautions you feel necessary. The msi installer is: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03win32-py2.6.msi md5sum: e247f69466be1f847c875794cc01d173 There is no corresponding Python 3.1 version. A distutils bug, absent in Python 3.0 and fixed in Python 2.6.2, prevents compilation with MinGW. Enjoy, Lenard Lindstrom
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
On Thu, Jul 9, 2009 at 8:55 PM, René Dudfield ren...@gmail.com wrote: Hello, awesome. I'll put it up with the other rc3 stuff. typo with the link: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03.win32-py2.6.msi cheers! On Fri, Jul 10, 2009 at 8:15 AM, Lenard Lindstrom le...@telus.net wrote: Hi everyone, Here is the latest Pygame 1.9.0 (rev 2500) for Python 2.6 on Windows. Though the machine this was compiled on has a firewall and active antivirus program, it uses XP and is not mine, so take whatever precautions you feel necessary. The msi installer is: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03win32-py2.6.msi md5sum: e247f69466be1f847c875794cc01d173 There is no corresponding Python 3.1 version. A distutils bug, absent in Python 3.0 and fixed in Python 2.6.2, prevents compilation with MinGW. Enjoy, Lenard Lindstrom Thanks for the build !!! 1. In the section 'Tests', the docs tells: A quick way to run the test suite package from the command line is to import the go submodule with the Python -m option: python -m pygame.tests [test options] but in winXP, python 2.6.1 this not works: D:\tmpc:\python26\python.exe -m pygame.tests c:\python26\python.exe: pygame.tests is a package and cannot be directly executed Making a script pygame19rc3_starter.py with the contents: #test starter from pygame.tests import run run() #script ends and running with D:\tmpc:\python26\python.exe -m pygame19rc3_starter.py the tests runs. -- 2. The test run goes ok: ... Ran 412 tests in 62.766s OK -- 3. playtested some games and old bugdemos, no problems -- thanks ! -- claxo
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
On Fri, Jul 10, 2009 at 12:06 PM, claudio canepa ccanep...@gmail.comwrote: On Thu, Jul 9, 2009 at 8:55 PM, René Dudfield ren...@gmail.com wrote: Hello, awesome. I'll put it up with the other rc3 stuff. typo with the link: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03.win32-py2.6.msi cheers! On Fri, Jul 10, 2009 at 8:15 AM, Lenard Lindstrom le...@telus.netwrote: Hi everyone, Here is the latest Pygame 1.9.0 (rev 2500) for Python 2.6 on Windows. Though the machine this was compiled on has a firewall and active antivirus program, it uses XP and is not mine, so take whatever precautions you feel necessary. The msi installer is: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03win32-py2.6.msi md5sum: e247f69466be1f847c875794cc01d173 There is no corresponding Python 3.1 version. A distutils bug, absent in Python 3.0 and fixed in Python 2.6.2, prevents compilation with MinGW. Enjoy, Lenard Lindstrom Thanks for the build !!! 1. In the section 'Tests', the docs tells: A quick way to run the test suite package from the command line is to import the go submodule with the Python -m option: python -m pygame.tests [test options] but in winXP, python 2.6.1 this not works: D:\tmpc:\python26\python.exe -m pygame.tests c:\python26\python.exe: pygame.tests is a package and cannot be directly executed Making a script pygame19rc3_starter.py with the contents: #test starter from pygame.tests import run run() #script ends and running with D:\tmpc:\python26\python.exe -m pygame19rc3_starter.py the tests runs. -- 2. The test run goes ok: ... Ran 412 tests in 62.766s OK -- 3. playtested some games and old bugdemos, no problems -- thanks ! -- claxo Ah, damn. I notice this on ubuntu, and OSX with python2.6 too... However it works with python3.0 and python3.1 Here's the python bug: http://bugs.python.org/issue2751 Looks like someone just decided to break it in python2.6. I guess they haven't ported the brokenness to py3k yet. Maybe we should use: python -m pygame.tests.main python -m pygame.examples.main A bit uglier, but it will at least work! cheers,
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
On Thu, Jul 9, 2009 at 11:48 PM, René Dudfield ren...@gmail.com wrote: ... Maybe we should use: python -m pygame.tests.main python -m pygame.examples.main A bit uglier, but it will at least work! cheers, just FYI: D:\tmpc:\python26\python.exe -m pygame.tests.main c:\python26\python.exe: No module named pygame.tests.main -- claxo
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
René Dudfield wrote: On Fri, Jul 10, 2009 at 12:06 PM, claudio canepa ccanep...@gmail.com mailto:ccanep...@gmail.com wrote: On Thu, Jul 9, 2009 at 8:55 PM, René Dudfield ren...@gmail.com mailto:ren...@gmail.com wrote: Hello, awesome. I'll put it up with the other rc3 stuff. typo with the link: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03.win32-py2.6.msi cheers! On Fri, Jul 10, 2009 at 8:15 AM, Lenard Lindstrom le...@telus.net mailto:le...@telus.net wrote: Hi everyone, Here is the latest Pygame 1.9.0 (rev 2500) for Python 2.6 on Windows. Though the machine this was compiled on has a firewall and active antivirus program, it uses XP and is not mine, so take whatever precautions you feel necessary. The msi installer is: http://www3.telus.net/len_l/pygame/pygame-1.9.0b03win32-py2.6.msi md5sum: e247f69466be1f847c875794cc01d173 There is no corresponding Python 3.1 version. A distutils bug, absent in Python 3.0 and fixed in Python 2.6.2, prevents compilation with MinGW. Enjoy, Lenard Lindstrom Thanks for the build !!! 1. In the section 'Tests', the docs tells: A quick way to run the test suite package from the command line is to import the go submodule with the Python -m option: python -m pygame.tests [test options] but in winXP, python 2.6.1 this not works: D:\tmpc:\python26\python.exe -m pygame.tests c:\python26\python.exe: pygame.tests is a package and cannot be directly executed Making a script pygame19rc3_starter.py with the contents: #test starter from pygame.tests import run run() #script ends and running with D:\tmpc:\python26\python.exe -m pygame19rc3_starter.py the tests runs. -- 2. The test run goes ok: ... Ran 412 tests in 62.766s OK -- 3. playtested some games and old bugdemos, no problems -- thanks ! -- claxo Ah, damn. I notice this on ubuntu, and OSX with python2.6 too... However it works with python3.0 and python3.1 Here's the python bug: http://bugs.python.org/issue2751 Looks like someone just decided to break it in python2.6. I guess they haven't ported the brokenness to py3k yet. Maybe we should use: python -m pygame.tests.main python -m pygame.examples.main A bit uglier, but it will at least work! cheers, Hi, python -m pygame.tests.__main__ python -m pygame.docs.__main__ There would be no reason to run pygame.examples, right? The explanation I found was that being able to run a package in Python 2.5 was considered a bug, so was fixed in Python 2.6. Adding __main__.py as an entry point for running a package in Python 2.7 and 3.0 is an attempt repair the fix. Lenard
Re: [pygame] Pygame 1.9.0 release candidate 3 for Python 2.6 on Windows
On Fri, Jul 10, 2009 at 2:25 PM, Lenard Lindstrom le...@telus.net wrote: Hi, python -m pygame.tests.__main__ python -m pygame.docs.__main__ There would be no reason to run pygame.examples, right? Yeah, maybe __main__ is good. Perhaps pygame.tests should have a __main__ function too? import pygame.tests pygame.tests.main() Since main() is what is used in the examples, it would be nice to try and keep it the same. But then we need to add a main.py and a __main__.py... ew. You can do a self test with: python -m pygame.tests Or with python2.6 do: python -m pygame.tests.__main__ Doing it for examples could list which examples are available? $ python -m pygame.examples aacircle aliens arraydemo blend_fill blit_blends camera chimp cursors eventlist fastevents fonty glcube headless_no_windows_needed liquid mask midi moveit movieplayer oldalien overlay pixelarray scaletest scrap_clipboard scroll sound sound_array_demos stars testsprite vgrade eg. See a list of examples... python -m pygame.examples Or with python2.6, python -m pygame.examples.__main__ Run one of the 30 examples included... python -m pygame.examples.aliens I'm not sure anyone would remember to add __main__ at the end(or even main). oh well. There might be a workaround... One work around might be to make it into a module-module, not a package-module. Then have the module-module load the package-module into its namespace. The explanation I found was that being able to run a package in Python 2.5 was considered a bug, so was fixed in Python 2.6. Adding __main__.py as an entry point for running a package in Python 2.7 and 3.0 is an attempt repair the fix. Lenard