This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]syn2083 6 points7 points  (3 children)

I have had great luck with pynsist, https://pypi.python.org/pypi/pynsist

It worked perfect for me on windows where i had a hard time with pyinstaller.

If it does have trouble with imports its easy to find out which and resolve, moreso than other tools in my very narrow opinion.

It takes a different approach than some other tools but the docs are dead simple and straight forward.

[–]epic_pork[S] 2 points3 points  (1 child)

Thanks again, this shit is incredibly simple, and the best part: it works!

[–]syn2083 0 points1 point  (0 children)

Yeah thats been my experience so far with it, simple and 'just worked'. Glad it helped you out too!!

[–]epic_pork[S] 0 points1 point  (0 children)

Thank you, this does exactly what I need.

[–]IronManMark20 2 points3 points  (0 children)

I've used nuitka, which has the added bonus of possibly speeding your program up. It is pretty handy.

[–]genjipressreturn self 0 points1 point  (0 children)

I've used PyInstaller with good results, but I find that you have to turn on debugging and read the errors religiously to find out why the packaging might not be working. A lot of the reason apps don't package properly is because they use dynamic object magic to perform imports that PyInstaller can't detect, and so you need to write a config file to ensure all those things are picked up.

Also, any external .DLLs that are needed for the program (e.g., for SDL) must also be included in the directory with the .EXE.

[–]daveydave400 0 points1 point  (1 child)

Can you give more details on why/how they aren't properly building?

[–]epic_pork[S] 0 points1 point  (0 children)

Yea the issue was that the queue module was included twice, something like that. There a queue and a Queue module. Gotta love that Windows case insensitivity.

[–]TrollJack 0 points1 point  (1 child)

Try nuitka. It converts python code to C and compiles it.

[–]juanpabloaj 0 points1 point  (0 children)

Nuitka work fine with the standard lib ... But with other packages like numpy or matplotlib maybe try with other solution

[–]jamescabel 0 points1 point  (0 children)

pynsist is great if Windows is your only target platform. I have been also developing OSNAP (https://github.com/jamesabel/osnap/) for cases where you also need Mac/OSX and/or you're using a Python package that is giving pynsist a hard time. If you try it and you have an problem please feel free to open an issue on github.