[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pygame] PyGame on PS2



Hi,

I'm sorry if this could be offtopic, but I'm doing this so I can distribute pygame for ps2.

I've recompiled python 2.1 for playstation 2 and I'm trying to create an RPM.

I create the rpm with "python setup.py bdist_rpm"

First I had a problem with a filename but I've fixed that. Now I get this weird message (see output.txt in attach.).

The ps2 linux distributions is very similar to redhat. The kernel is 2.2 and gcc 2.95. Python 2.1 works ok. I only have problems when I try to create the rpm.

Any help would be appreciated.

Cheers,

Gianluca

-----Original Message-----
From: Gianluca Cancelmi 
Sent: 12 June 2002 16:51
To: pygame-users@seul.org
Subject: RE: [pygame] PyGame on PS2


>Numeric might be tough to do. it needs support for floats, and if PS2
>uses different integer sizes for short and long that might be trouble?
>i didn't think PS2 could do floats (maybe that was PS1?) or perhaps
>they are emultated on PS2 linux?

Ps2 is very good at floating point stuff. I think the problem might be the compiler.
This is from Numeric readme and sgi and ps2 have similar cpu.

===> Silicon Graphics bug:
    Due to a bug in the SGI compiler's handling of complex
    variables, you must build your *python* without optimization
    on a certain file. Consult the Python installation instructions
    for the details.

>btw, solarwolf only runs at 800x600 currently. i'm not sure if that will 
>even run on the PS2?

With a monitor I should be able to get higher resolutions.


>the 'autoconfig' stuff might not run too well on ps2 linux. that shouldn't 
>be anything you need to fight. just "hand edit" the 'Setup' file in the 
>pygame source directory. all config info goes into that 'Setup'. from there 
>you shouldn't need to change the actual 'setup.py' script.

I haven't touched the Setup file. I'm having problems with python 2.1 not pygame.
I'm looking at the python mailing list to see if I can find something.

Cheers,

Gianluca
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org
warning: sdist: missing required meta-data: url
warning: sdist: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied
warning: sdist: 'structmodule.c' not a regular file -- skipping
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.82251
fg: no job control
+ umask 022
+ cd /usr/local/src/Python-2.1.1/build/bdist.linux-mips/rpm/BUILD
+ cd /usr/local/src/Python-2.1.1/build/bdist.linux-mips/rpm/BUILD
+ rm -rf Pythonstandardlibrary-2.1
+ /bin/gzip -dc /usr/local/src/Python-2.1.1/build/bdist.linux-mips/rpm/SOURCES/Pythonstandardlibrary-2.1.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root         0 2002-06-12 23:03:57 Pythonstandardlibrary-2.1/
-rw-rw-r-- gianluca/gianluca 38651 2001-07-18 19:40:57 Pythonstandardlibrary-2.1/README
-rw-rw-r-- gianluca/gianluca 25729 2002-06-11 23:23:35 Pythonstandardlibrary-2.1/setup.py
-rw-r--r-- root/root           193 2002-06-12 23:03:57 Pythonstandardlibrary-2.1/PKG-INFO
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd Pythonstandardlibrary-2.1
++ /usr/bin/id -u
+ [ 0 = 0 ]
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ [ 0 = 0 ]
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.82251
fg: no job control
+ umask 022
+ cd /usr/local/src/Python-2.1.1/build/bdist.linux-mips/rpm/BUILD
+ cd Pythonstandardlibrary-2.1
+ env CFLAGS=-O2 python setup.py build
running build
running build_ext
Traceback (most recent call last):
  File "setup.py", line 617, in ?
    main()
  File "setup.py", line 611, in main
    scripts = ['Tools/scripts/pydoc']
  File "/usr/local/lib/python2.1/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.1/distutils/dist.py", line 899, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.1/distutils/dist.py", line 919, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.1/distutils/command/build.py", line 106, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python2.1/distutils/cmd.py", line 328, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.1/distutils/dist.py", line 919, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.1/distutils/command/build_ext.py", line 231, in run
    customize_compiler(self.compiler)
  File "/usr/local/lib/python2.1/distutils/sysconfig.py", line 121, in customize_compiler
    (cc, opt, ccshared, ldshared, so_ext) = \
  File "/usr/local/lib/python2.1/distutils/sysconfig.py", line 370, in get_config_vars
    func()
  File "/usr/local/lib/python2.1/distutils/sysconfig.py", line 302, in _init_posix
    raise DistutilsPlatformError, my_msg
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open ./Makefile (No such file or directory)
Bad exit status from /var/tmp/rpm-tmp.82251 (%build)
running bdist_rpm
writing 'build/bdist.linux-mips/rpm/SPECS/Pythonstandardlibrary.spec'
running sdist
reading manifest file 'MANIFEST'
creating Pythonstandardlibrary-2.1
making hard links in Pythonstandardlibrary-2.1...
hard linking README -> Pythonstandardlibrary-2.1
hard linking setup.py -> Pythonstandardlibrary-2.1
tar -cf dist/Pythonstandardlibrary-2.1.tar Pythonstandardlibrary-2.1
gzip -f9 dist/Pythonstandardlibrary-2.1.tar
removing 'Pythonstandardlibrary-2.1' (and everything under it)
copying dist/Pythonstandardlibrary-2.1.tar.gz -> build/bdist.linux-mips/rpm/SOURCES
building RPMs
rpm -ba --define _topdir /usr/local/src/Python-2.1.1/build/bdist.linux-mips/rpm --clean build/bdist.linux-mips/rpm/SPECS/Pythonstandardlibrary.spec
error: command 'rpm' failed with exit status 1