[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 René,

Undefined Setup macros do cause mysterious TypeErrors in distutils. The _movie module needs to be commented out for Windows anyway, as it crashes right now, at least the __movie_test.py example does.

Lenard

René Dudfield wrote:
Sorry Lenard, I should have made that test platform specific.  I was
trying to see if either of those files were on the build bots.

I think the OSX build should be ok to use those headers, and perhaps
link to SDL_ttf.


However, now there is a problem with the setup.py and the Setup file.
  http://thorbrian.com/pygame/builds.php

Error with the "Setup" file,
perhaps make a clean copy from "Setup.in".
Traceback (most recent call last):
  File "setup.py", line 147, in <module>
    extensions = read_setup_file('Setup')
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/extension.py",
line 167, in read_setup_file
    line = expand_makefile_vars(line, vars)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/sysconfig.py",
line 348, in expand_makefile_vars
    s = s[0:beg] + vars.get(m.group(1)) + s[end:]
TypeError: cannot concatenate 'str' and 'NoneType' objects

It looks like AVFORMAT is being set to None.  Probably because it's
not specified in the other config* files... eg it's not in
config_darwin.py


I've just commented _movie out for now, until we update the other config files.


cheers,


On Fri, Aug 21, 2009 at 12:29 AM, Lenard Lindstrom<len-l@xxxxxxxxx> wrote:
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

OK

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.

Lenard



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í
http://www.bellverde.org



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):
 File

"/home/lenard/.local/lib/python2.5/site-packages/pygame/tests/font_test.py",
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):
 File

"/home/lenard/.local/lib/python2.5/site-packages/pygame/tests/font_test.py",
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',

'/home/lenard/.local/lib/python2.5/site-packages/pygame/tests/test_utils/test_runner.py',
'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',
'DBUS_SESSION_BUS_ADDRESS':

'unix:abstract=/tmp/dbus-oaklBiRLVx,guid=685dcbab6a513df35e9b60c44a8d7364',
'_': '/usr/bin/python', 'OLDPWD': '/home/lenard', 'HISTCONTROL':
'ignoreboth', 'PWD': '/home/lenard/pygame/trunk', 'COLORTERM':
'Terminal',
'MAIL': '/var/mail/lenard', 'LS_COLORS':

'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:',
'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
$

Lenard

Vicent Marti wrote:

Amazing, now I can work on my Windows box too. ^^

Thanks for the effort, Lenard!


Vicent Martí
http://www.bellverde.org



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>
wrote:



Hi Brian, Vicent,

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

Lenard



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
:)



Hi,

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

for Pythons 2.4, 2.5 --


http://www3.telus.net/len_l/pygame/experimental/prebuilt-pygame1.9.2-msvcr71-win32-exp.zip
md5sum: f571cae6fb2da224beffe6d2f91cfa0e

for Pythons 2.6, 3.1 --


http://www3.telus.net/len_l/pygame/experimental/prebuilt-pygame1.9.2-msvcr90-win32-exp.zip
md5sum: 70ee3182832451f0a4265f79c642ae0f

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

--
Lenard Lindstrom
<len-l@xxxxxxxxx>