Page 1 of 1

Best way to distribute Python program?

Posted: Tue Dec 06, 2016 5:27 pm
by BackRaw
Hi,

what would be the best way to distribute a Python executable that requires packages from pip? I'm playing around with requirements.txt and then call pip install -r on it. However this requires a batch/shell script to be run first.

I wonder if this is the way to do it.
Thanks!

Re: Best way to distribute Python program?

Posted: Tue Dec 06, 2016 6:14 pm
by Ayuto
Which program did you use to create the executable? I know that PyInstaller scans for dependencies and packs them as well.

Re: Best way to distribute Python program?

Posted: Tue Dec 06, 2016 8:20 pm
by BackRaw
Ayuto wrote:Which program did you use to create the executable? I know that PyInstaller scans for dependencies and packs them as well.

Haven't used anything yet :D
Thanks, I'll look into it, sounds good.

Re: Best way to distribute Python program?

Posted: Wed Apr 05, 2017 11:35 am
by iPlayer
Late reply, but I highly recommend using pynsist package. It puts your application in a Nullsoft Installer. It's much better than packing everything in a single .exe. Your application will install like any other program, it will be accessible in Windows Control Panel etc.
Also supports neat stuff like automatically downloading proper Python interpreter and corresponding versions of the libs from PyPi.

Re: Best way to distribute Python program?

Posted: Mon Oct 02, 2017 12:42 pm
by BackRaw
iPlayer wrote:Late reply, but I highly recommend using pynsist package. It puts your application in a Nullsoft Installer. It's much better than packing everything in a single .exe. Your application will install like any other program, it will be accessible in Windows Control Panel etc.
Also supports neat stuff like automatically downloading proper Python interpreter and corresponding versions of the libs from PyPi.

Amazing! Thank you!

BTW: Late reply lol