Skip to content
Advertisement

[ Python 2.7 ]Package program with Pynsist

I am packaging a Python 2.7 program with the lastest version of Pynsist.
I’ve created an installer.cfg file following this example.
But when I try to package my application running

JavaScript

into the application folder it comes up with

JavaScript

So the problem I think is with Pygame.

On Google there in nothing about this, but i cannot use others programs for packaging(eg. py2exe, pyinstaller ecc…).
Thanks and sorry for the bad english

Advertisement

Answer

Reposting as an answer, since it worked:

If you put pygame in packages=, it tries to copy it from your computer. But on your computer that’s pygame for Linux, which won’t work on Windows. If you instead put pygame in the pypi_wheels= bit of the config file, Pynsist will take care of downloading a Windows version for you.

Have a look at the pygame example in the Pynsist repository.

Most packages don’t have this problem because they only contain Python code, which is the same files on all platforms. Pygame has compiled modules, which have to be compiled for the right platform.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement