Hi all, I am new to programming, already have a glace on introduction of
c++, java and finally decided on python. But I found that the .py file is
just like the source file, how can I make a program without revealing its
source? (may be my question is a little bit stupid)
Jul 19 '05
30 2133
steve.leach wrote: python -o foo.exe foo.py
at the command line, and get an executable, without any further effort.
Hence making the resulting program useless to users of most operating systems.
In close sourced development, which most corporates may prefer, yes, the
resulting program is useless to users of most operating systems.
In open sourced developement, it is still a good feature to have. At
least for distribution to end users or as trial.
To end users, they don't care, as long as they can click and run the
program they need.
To developers, if the codes are close source, nothing can be done anyway
even if you have the codes, licensing agreements and contracts usually
forbids everything. If the codes are open source, you will get the codes
anyway and do according to the limits of the licence.
maurice
> python -o foo.exe foo.py
Is that a real command that can be use? be*******@aol.c om wrote: IMO the fact that so many people ask
"How can I create executables in Python on Windows"
indicates that standard "batteries included" Windows Python distribution is missing a vital battery. There are tools such as py2exe, but this functionality should be built-in, so that a newbie to Python can just download it, type
python -o foo.exe foo.py
at the command line, and get an executable, without any further effort.
Since this is about windows and windows users just want everything in
".exe" form (no matter if it also contains spyware), and they don't care
about the size of it (they just want the damn exe) and since there is
zero chance that python will be included in the next windows
distribution but these people still want the exe (they do, really),
I think I have a convenient solution to give it to them.
/* small program in C in self extracting archive
*/
if (have_applicati on ("Python")) {
have_python:
system ("python.exe my_application. py")
} else {
printf ("This software requires python. Wait until all the
necessary components are being installed\n");
download_python _from_python_or g();
system ("install_pytho n.exe");
goto have_python;
}
Seriously, people who want executables wouldn't notice the difference.
jfj
steve.leach wrote: python -o foo.exe foo.py
at the command line, and get an executable, without any further effort.
Hence making the resulting program useless to users of most operating systems.
Let's ignore for the moment whether including py2exe as a "battery" is a
desirable thing from an abstract point of view. We may legitimately
differ about that.
We should not forget in our enthusiasm for open source that while "users
of most operating systems" might not find py2exe useful, "most users of
operating systems" may well, since Windows users outnumber the rest
several times.
There's nothing wrong with open source projects catering to a market,
and there's nothing wrong with running open source software on a
proprietary operating system. To behave otherwise might reduce the
growth opportunities for Python and its community.
no-zealotry-please-ly y'rs - steve
--
Steve Holden +1 703 861 4237 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Steve Holden <st***@holdenwe b.com> writes:
[...] There's nothing wrong with open source projects catering to a market, and there's nothing wrong with running open source software on a proprietary operating system. To behave otherwise might reduce the growth opportunities for Python and its community.
no-zealotry-please-ly y'rs - steve
[...]
I'm hesitant to label everybody who disagrees with you (and me) on
that a zealot. Though I tend to take the same side you do, I'm not
entirely sure it's not just laziness on my part that I think that way.
Seems to me that holding opinions such as "it's a bad thing to support
open source software on closed source systems, and you should not do
it, for the common good" is far from crazy, even though I don't
currently happen to hold that view.
John
jfj <jf*@freemail.g r> writes:
[...] /* small program in C in self extracting archive */ if (have_applicati on ("Python")) { have_python: system ("python.exe my_application. py") } else { printf ("This software requires python. Wait until all the necessary components are being installed\n"); download_python _from_python_or g(); system ("install_pytho n.exe"); goto have_python; }
Seriously, people who want executables wouldn't notice the difference.
Until they install the next program that does this.
John
John J. Lee wrote: Steve Holden <st***@holdenwe b.com> writes: [...]
There's nothing wrong with open source projects catering to a market, and there's nothing wrong with running open source software on a proprietary operating system. To behave otherwise might reduce the growth opportunities for Python and its community.
no-zealotry-please-ly y'rs - steve
[...]
I'm hesitant to label everybody who disagrees with you (and me) on that a zealot. Though I tend to take the same side you do, I'm not entirely sure it's not just laziness on my part that I think that way.
Seems to me that holding opinions such as "it's a bad thing to support open source software on closed source systems, and you should not do it, for the common good" is far from crazy, even though I don't currently happen to hold that view.
Well, we appear to agree. Please note I wasn't labelling anyone a
zealot, simply implying that I didn't want the discussion to descend to
blind repetitions of principle with no supporting arguments.
I have no problem with others taking a different view from mine on this
issue, though I reserve the right to disagree with them. My own view is
that open source (Python included) wouldn't be anywhere near as advanced
and popular as it is if it hadn't been ported to the majority platform,
and that this actually positions it better for eventual world domination
:-). There's a reason Microsoft are fighting Linux with FUD.
Let's also not forget that at PyCon, (I am told) when Jim Hugunin asked
for a show of hands as to who principally developed for Windows
platforms, *Guido* raised his hand.
regards
Steve
--
Steve Holden +1 703 861 4237 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/ jj*@pobox.com (John J. Lee) writes:
[snap] Until they install the next program that does this.
If we talk about _real_ users from the _real_ world, the most of them
would just kill the app (or what is the name for stopping running
program in w32) when the download begins[1] :)
[1] 'hey, is that a spyware or what? what takes so darn long?'
-- http://www.pdemb.prv.pl
jfj <jf*@freemail.g r> writes: /* small program in C in self extracting archive */ if (have_applicati on ("Python")) { have_python: system ("python.exe my_application. py") } else { printf ("This software requires python. Wait until all the necessary components are being installed\n"); download_python _from_python_or g(); system ("install_pytho n.exe"); goto have_python; }
Goto. Ugh.
if (!have_applicat ion("Python")) {
printf ("This software requires python. Wait until all the
necessary components are being installed\n");
download_python _from_python_or g();
system ("install_pytho n.exe");
}
system("python. exe my_application. py");
<mike
--
Mike Meyer <mw*@mired.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Pmb |
last post by:
I'm confused as to what the compiler error message I'm getting is refering
to. Can someone take a gander and let me know what I did wrong? The program
is below. When I compile it I get the following error
______________________________
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
d:\temp\complex\temp.cpp:
Error E2333 d:\temp\complex\temp.cpp 73: Class member
'Complex::conjugate(Complex)' declared outside its class
Error...
|
by: kim |
last post by:
The c program is an example and should be correct.
I tried to compile the c file with MS studio 6.0. But failed with the
several err and warning messages. Does anyone know how to make it work?
Thanks.
Here is the c file:
/*file name way.c*/
#include <stdio.h>
|
by: Martin |
last post by:
Hi All,
Im looking forward for info whether VB.NET complied application would run in Windows 98 or not ? Does any one have tried to do so ??
Regards,
Martin
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |