[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] freetype merge and the Spectacularly Adequate Automated Pygame Build Page Re: [pygame] Documentation changes in trunk

Hi Vicent,

The font_test.py stuff is due to someone adding OS X specific tests without checking that the operating system is indeed OS X. And I should have checked whether it had anything to do with freetype. freetype_font_test.py fails because test_fixed.otf and test_sans.ttf are not copied into pygame.tests by setup.py. When the files are copied it works:

lenard@lenard10:~/pygame$ python -m pygame.tests freetype_font
loading pygame.tests.freetype_font_test
Ran 9 tests in 1.584s


By the way, the test files should probably go into test/fixtures. Once you have moved them I will update setup.py to include them in the install.


Vicent Marti wrote:
Hey Lenard,

that's very strange indeed, because the two tests that are failing are
the tests for the default Font module. I didn't even touch them, so
maybe there's a problem with your setup?

The actual error in the FreeType module is even stranger... It doesn't
even report an actual error message. Can you double check your
installation? As far as I know, those 2 tests of the Font module have
always passed, so they should pass on your computer too.

Vicent Martí

On Thu, Aug 20, 2009 at 10:57 PM, Lenard Lindstrom<len-l@xxxxxxxxx> wrote:
Hi Vincent,

I built the module under Debian lenny. I had to commit a small change to
config_unix.py because freetype-config did not recognize multiple command
line arguments. Anyway, when running the unit tests:

$ python -m pygame.tests

I get these errors:

FAIL: FontModuleTest.test_has_file_osx_10_4_sdk
Traceback (most recent call last):
line 57, in test_has_file_osx_10_4_sdk
  self.assertEqual(os.path.exists(f), True)
AssertionError: False != True

FAIL: FontModuleTest.test_has_file_osx_10_5_sdk
Traceback (most recent call last):
line 52, in test_has_file_osx_10_5_sdk
  self.assertEqual(os.path.exists(f), True)
AssertionError: False != True

ERROR: all_tests_for (pygame.tests.freetype_font_test.AllTestCases)
Traceback (most recent call last):
 File "test/pygame.tests.freetype_font_test.py", line 1, in all_tests_for
subprocess completely failed with return code of 0
cmd:          ['/usr/bin/python',
'pygame.tests.freetype_font_test', '--exclude',
'interactive,subprocess_ignore,python2_ignore', '--timings', '1']
test_env:     {'HUSHLOGIN': 'FALSE', 'LOGNAME': 'lenard', 'WINDOWID':
'33554446', 'HOME': '/home/lenard', 'PATH':
'/home/lenard/bin:/usr/local/bin:/usr/bin:/bin:/usr/games', 'DISPLAY':
':0.0', 'SSH_AGENT_PID': '2952', 'LANG': 'en_CA.UTF-8', 'TERM': 'xterm',
'SHELL': '/bin/bash', 'XAUTHORITY': '/home/lenard/.Xauthority',
'SESSION_MANAGER': 'local/lenard10:/tmp/.ICE-unix/2960', 'SHLVL': '4',
'WINDOWPATH': '2', 'SSH_AUTH_SOCK': '/tmp/ssh-TNNQdk2951/agent.2951',
'_': '/usr/bin/python', 'OLDPWD': '/home/lenard', 'HISTCONTROL':
'ignoreboth', 'PWD': '/home/lenard/pygame/trunk', 'COLORTERM': 'Terminal',
'MAIL': '/var/mail/lenard', 'LS_COLORS':
'USER': 'lenard'}
working_dir:  /home/lenard/.local/lib/python2.5/site-packages/pygame
return (top 5 lines):
loading pygame.tests.freetype_font_test

When I run free_font_test in foreground I get nothing:

$ python -m pygame.tests -n freetype_font_test
loading pygame.tests.freetype_font_test


Vicent Marti wrote:
Amazing, now I can work on my Windows box too. ^^

Thanks for the effort, Lenard!

Vicent Martí

On Wed, Aug 19, 2009 at 7:56 PM, Lenard Lindstrom<len-l@xxxxxxxxx> wrote:

René Dudfield wrote:

On Tue, Aug 18, 2009 at 9:12 PM, Lenard Lindstrom<len-l@xxxxxxxxx>

Hi Brian, Vicent,

The freetype2 library is already a part of the prebuilts as a separate
for use by SDL_tff. What is missing from the prebuilts are the headers.
I add those the module compiles and passes its unit tests for Python
will put together a zip file for Python 2.5 to include freetype2 and
in the prebuilts.


cool :)

ok, it seems the freetype module is building ok on mac now on the
SAAPBP.  I just enabled the freetype tests again... so once the
buildbot updates we should be able to see if it passes the tests too


I have uploaded new prebuilts which include the freetype2 headers. The
freetype module will build with these.

for Pythons 2.4, 2.5 --

md5sum: f571cae6fb2da224beffe6d2f91cfa0e

for Pythons 2.6, 3.1 --

md5sum: 70ee3182832451f0a4265f79c642ae0f

The ffmpeg libraries for Python 2.5 were left out because of problems
the _movie.pyd module.

Lenard Lindstrom