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

Re: [pygame] Pygame 1.8.0 for Windows doesn't actually work.



The Windows installer (msi) is supported by distutils. NSIS is not. It is possible to write an NSIS script that would work with a distutils "build". But setup.py uses a Setup file to find SDL, and so the script would have to read that as well. Also the NSIS installer would have to recognize a previous Pygame installation and uninstall it properly. That is a lot of work.

Lenard



joe gallo wrote:
Would NSIS be a plausible alternative?

On Wed, May 21, 2008 at 10:20 PM, Lenard Lindstrom <len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>> wrote:

    When I try this for Python 2.4 I find nothing is replaced. Only
    files new to Pygame 1.8 are added. Consequently I don't get the
    error since it is still effectively Pygame 1.7. The msi installer
    is generated entirely by distutils. To customize its behavior
    means more hacks to distutils. We could always go back to the
    distutils executable Windows installer. What I know is msi is
    demanding. You must design your project around it for it to work
    as intended. Also the msi module included with Python 2.5 is
    inflexible.

    Lenard


    Brian Fisher wrote:

        So does anybody know why exactly this problem happens? Is
        there some file left behind by 1.7.1 that is not replaced with
        a 1.8.0 file?  If so, what file?

        On Wed, May 21, 2008 at 4:12 PM, René Dudfield
        <renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>
        <mailto:renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>>> wrote:

           hey,

           I've made a note about uninstalling pygame 1.7.1 first on the
           download page...

           However I think we need to figure out how to get the
        windows installer
           to check if pygame is installed already... and if so
        uninstall it.  Or
           if we can't do that, make it display instructions to
        uninstall in the
           installer (maybe by putting it in the README).