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

Re: [pygame] Problems installing to cygwin/w2000



> ...just being slightly lazy following a 24h stint of trying to get
> pygame to work ! OK It does work with demos, I just can't build it
> and use it from Python.

wow, it sounds like you've put a lot of work into this. here's
some insight into distutils..

first, i'm almost positive distutils doesn't work for cross-compiling.
there may be some way to get it working, but i've never heard of it
being used. i also wouldn't know where to start.

second, distutils defaults to using the MS compile (cl.exe) on 
windows, but it can easily use several different compilers.
the "build_ext" command in distutils takes a --compiler flag.
you can give multiple commands to distutils in one commandline,
each with the appropriate flags.. you would be looking for
something like this

python setup.py install build_ext --compiler=cygwin

if passing this compiler info to distutils becomes a hassle,
distutils also lets you store a config file where you can keep
commandline arguments that you always use..

<<in a file named "setup.cfg">>
[build_ext]
compiler=cygwin
<<endoffile>>

you may also find more helpful tips here,
http://www.python.org/doc/current/inst/non-ms-compilers.html

 
also, you mentioned the examples were working for you, but
you could compile pygame? i don't quite understand that. you
don't get the pygame examples without pygame :]


as a last resort, there are several precompiled version of
pygame for windows. but for cvs versions of pygame you'll
need to get the compiling working.


also, feel free to send in your progress. i'll be glad to
help you get this going.


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org