By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,846 Members | 2,107 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,846 IT Pros & Developers. It's quick & easy.

Distributing Python Applications

P: n/a
Hello,

It has been such a painful thing for me. As I made a program to
encrypt files, now I want to distribute that program over other
computers. I created .EXE file with py2exe but the "dist" folder makes
around 2 mb and it restricts for the python DLL to be within the same
folder. Is there any easy way to get this thing done in just one exe
file? I mean if I do interfacing with C/C++ will it work for me and if
I do interfacing with C/C++ will it be necessary on the other computer
to have python installed on it?
Thanks in advance...

Feb 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Fi************@gmail.com wrote:
Hello,

It has been such a painful thing for me. As I made a program to
encrypt files, now I want to distribute that program over other
computers. I created .EXE file with py2exe but the "dist" folder makes
around 2 mb and it restricts for the python DLL to be within the same
folder. Is there any easy way to get this thing done in just one exe
file? I mean if I do interfacing with C/C++ will it work for me and if
I do interfacing with C/C++ will it be necessary on the other computer
to have python installed on it?
Thanks in advance...
No need for python to be installed. Don't worry about 2 MB downloads.
Probably, if users are savvy enough to need encryption, they have the
download speeds and hard drive space to handle 2 MB. Check out
pyinstaller also, but what your really need is Innosetup. Its beautiful.

James
Feb 10 '07 #2

P: n/a
En Sat, 10 Feb 2007 09:21:29 -0300, <Fi************@gmail.comescribió:
It has been such a painful thing for me.
Ouch... why was that? Programming in Python, or using py2exe?
As I made a program to
encrypt files, now I want to distribute that program over other
computers. I created .EXE file with py2exe but the "dist" folder makes
around 2 mb and it restricts for the python DLL to be within the same
folder. Is there any easy way to get this thing done in just one exe
file?
Perhaps... but what would you gain? Most programs include, apart from the
main executable: manual, license, readme file, release notes, installation
guide, other resources, etc.
You can use an installer like Inno Setup to package nicely all required
pieces into a single distributable file. For simple programs, even a
self-extracting .zip would suffice.
I mean if I do interfacing with C/C++ will it work for me and if
I do interfacing with C/C++ will it be necessary on the other computer
to have python installed on it?
I don't understand what are you asking... You can extend and/or embed
Python using C. And you already know py2exe, obviously: the idea is to
*not* require a previous Python install in order to run your application.

--
Gabriel Genellina

Feb 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.