Hi Julian,
Pygame builds with Python 3.1 on Linux. Though setup.py does it
automatically, try:
python3 config.py
first. Then run
python3 setup.py install --prefix=<where you want it to go>
It will install Pygame in the lib/python3.1/site-packages subdirectory,
creating the directories if necessary. Just make sure the site-packages
directory is included in Python's module search path. Also check that
you have all the required dependency libraries and their '<lib>-dev'
packages installed.
Lenard Lindstrom
On 17/01/11 01:06 PM, Julian Marchant wrote:
I can't figure out how to compile it for Python 3 (3.1, to be exact).
Running setup.py with Python 3 does no good (if I don't supply an
argument it crashes, and if I do it just re-installs Pygame to
/usr/lib/python2.6), and I don't see any arguments for where to
install, what Python version, whatever. Sorry if this sounds like a
noobish question, but what do "install" and "build" do anyway? does
"install" just do the same thing as "build" and copy the files to
another directory, or is there a distinction? I'm fairly new to
compiling things directly from source and install.html isn't helping
me much.
------------------------------------------------------------------------
*From:* René Dudfield <[email protected]>
*To:* [email protected]
*Sent:* Sun, January 16, 2011 10:34:53 AM
*Subject:* Re: [pygame] Pygame for py3?
On Sun, Jan 16, 2011 at 2:33 PM, Julian Marchant <[email protected]
<mailto:[email protected]>> wrote:
> I can see a Windows binary for Python 3.1 on the download page, but
I don't
> see a source package for Python 3. Can the source be used for both
Py2 and
> Py3?
yeah, same source.
>
> While I'm at it, why isn't there a Windows installer (or a Mac OS X
package,
> for that matter) for Pygame for Python 2.7 listed on the download page?
> Python 2.6 is a bit outdated now.
>
>
we haven't gotten around to it yet. There is a link to a 2.7 download
on an external binary providers web page for 2.7 though.
cheers,