473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Making small executive file for distribution

Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
..py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own computer at work, but those are an
exception).

As far as I know py2exe is the only option which can do such a thing
(make exe files from scripts). Is there a way to make those exe files
a little smaller (for a small script they easily go up to 5-10 mb).

Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.

--
Marin

Sep 24 '08 #1
7 1927
On Sep 24, 9:17*am, Marin Brkic <mbrkic@invalid_mail.adresswrote:
Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own computer at work, but those are an
exception).

As far as I know py2exe is the only option which can do such a thing
(make exe files from scripts). Is there a way to make those exe files
a little smaller (for a small script they easily go up to 5-10 mb).

Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.

--
Marin
If you don't create a monolithic EXE, then most of the extra files
(that make up the bulk of the size) can be shared between other
converted scripts. That is, if you convert foo.py, and send the bundle
to your colleague, then convert bar.py, you only need to send bar.exe,
and it will run fine if they execute it in the same directory that has
all the DLLs you sent with foo.exe.

Another option might be to encourage them to download Portable Python,
which doesn't need to be installed.

Mark Sherry
Sep 24 '08 #2
On Sep 24, 8:17*am, Marin Brkic <mbrkic@invalid_mail.adresswrote:
Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own computer at work, but those are an
exception).

As far as I know py2exe is the only option which can do such a thing
(make exe files from scripts). Is there a way to make those exe files
a little smaller (for a small script they easily go up to 5-10 mb).

Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.

--
Marin
It ends up being so large because of the dlls that are needed. There
are other ways to distribute programs listed here:

http://www.freehackers.org/Packaging_a_python_program

Mike
Sep 24 '08 #3
On Wed, 24 Sep 2008 07:32:56 -0700 (PDT), md******@gmail.com wrote:
>If you don't create a monolithic EXE, then most of the extra files
(that make up the bulk of the size) can be shared between other
converted scripts. That is, if you convert foo.py, and send the bundle
to your colleague, then convert bar.py, you only need to send bar.exe,
and it will run fine if they execute it in the same directory that has
all the DLLs you sent with foo.exe.

Another option might be to encourage them to download Portable Python,
which doesn't need to be installed.
This is an interesting suggestion. I didn't know there was a portable
version of python. I will look into it - could just turn out to be the
perfect solution to this (after all, it would be even simpler if they
could send/receive just .py script).

Thank you.

--
Marin
>
Mark Sherry
Sep 24 '08 #4
On Sep 24, 3:17*pm, Marin Brkic <mbrkic@invalid_mail.adresswrote:
Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.
Send them the .py file and confirm that it does work. The lack of
Python can be blamed on the incompetent BOFH. Chances are the
situation will change when the BOFH gets 20 requests for Python a
day.
Sep 24 '08 #5
On Wed, 24 Sep 2008 14:50:56 -0700 (PDT), sturlamolden
<st**********@yahoo.nowrote:
>On Sep 24, 3:17*pm, Marin Brkic <mbrkic@invalid_mail.adresswrote:
>Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.

Send them the .py file and confirm that it does work. The lack of
Python can be blamed on the incompetent BOFH. Chances are the
situation will change when the BOFH gets 20 requests for Python a
day.
Yes, I agree. But in large institutions, where system engineers
maintain a lot of computers there usually exists a policy on what is
installed on computers and what is not. And currently python is not.
And it's not gonna change anytime soon since only few of us are using
it (2 of us use it on personal laptops, to others we send exe files).

--
Marin
Sep 24 '08 #6
Marin Brkic wrote:
Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own computer at work, but those are an
exception).

As far as I know py2exe is the only option which can do such a thing
(make exe files from scripts). Is there a way to make those exe files
a little smaller (for a small script they easily go up to 5-10 mb).

Has anyone had a situation like this ? All your inputs and suggestions
are more then welcomed.

--
Marin
Times have changed, 5-10Mb is REALLY small. Flash drives hold 4000-8000Mb
for less than $20 and standard hard drives are now 500Gb. IMHO you are
concerned about a problem that doesn't actually exist.

-Larry
Sep 25 '08 #7
On 2008-09-25, Larry Bates <la*********@vitalEsafe.comwrote:
Marin Brkic wrote:
>Not commercial distribution, but an academic kind of sorts - giving
the exe file to coleagues, so they can use it in their work. Giving
.py file is not an option, since due to centralized computer
maintenance, they don't (and cannot) have installed python (except the
ones that bring their own computer at work, but those are an
exception).

As far as I know py2exe is the only option which can do such a thing
(make exe files from scripts). Is there a way to make those exe files
a little smaller (for a small script they easily go up to 5-10 mb).
Times have changed, 5-10Mb is REALLY small. Flash drives hold 4000-8000Mb
for less than $20 and standard hard drives are now 500Gb. IMHO you are
concerned about a problem that doesn't actually exist.
But what if he wants to distribute his program on a floppy
disk? ;)

[I think only 1 of my 5 machines has a floppy drive, and the
last time I tried to use it, it didn't work. I did have a
usb-floppy drive somewhere, but I think somebody borrowed it a
couple years ago and never returned it.]

--
Grant

Sep 25 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ruben | last post by:
Hello. I am trying to read a small text file using the readline statement. I can only read the first 2 records from the file. It stops at the blank lines or at lines with only spaces. I have a...
2
by: Karthik | last post by:
Hello, How do I create an .exe file from a VC++ program (using VS 6.0). I understand U need to compile the program and that will make an exe file. I did that. When I try to build the file, I get...
4
by: arak123 | last post by:
Lets say i have file with the following structure and the following code snippet: --------------------BEGIN FILE----------------------- name1 name2 name3 name4 ; name5
3
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no...
2
by: Charles A. Lackman | last post by:
Hello, I have a web site that is accessing the Excel Reference: Dim Excel As New Excel.Application When this line of code is executed I get the following error. ASP.NET is not authorized...
10
by: SpreadTooThin | last post by:
Hi I'm writing a python script that creates directories from user input. Sometimes the user inputs characters that aren't valid characters for a file or directory name. Here are the characters...
5
by: vignesh19 | last post by:
Hi I am developing a small project using ms access. I am now nearing the completion of project. When i try to make a MDE file, microsoft access becomes "Not Responding" I converted the...
1
by: C. (http://symcbean.blogspot.com/) | last post by:
On Aug 12, 7:08 am, long_way <yilongwei....@gmail.comwrote: Hi, Wouldn't it just be simpler to use Google maps? I'm not overly familiar with greybox, but it should be fairly straightforward...
2
by: Leslie WebsiteS | last post by:
I've got a php form handler which takes data from an html page and creates and sends an email with one or more attachments. I wanted to be smart and make sure a file had a size GREATER THAN 0. So I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.