Re: Can .py be complied?

2005-05-01 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: > John J. Lee wrote: [...] > > 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 [...] > Well, we appear to agree. Please note I wasn't labelling anyone a > zealot, sim

Re: Can .py be complied?

2005-04-30 Thread Mike Meyer
jfj <[EMAIL PROTECTED]> writes: > /* small program in C in self extracting archive > */ > if (have_application ("Python")) { >have_python: >system ("python.exe my_application.py") > } else { >printf ("This software requires python. Wait until all the > necessary components are being

Re: Can .py be complied?

2005-04-30 Thread Peter Dembinski
[EMAIL PROTECTED] (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, i

Re: Can .py be complied?

2005-04-30 Thread Steve Holden
John J. Lee wrote: Steve Holden <[EMAIL PROTECTED]> 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

Re: Can .py be complied?

2005-04-29 Thread John J. Lee
jfj <[EMAIL PROTECTED]> writes: [...] > /* small program in C in self extracting archive > */ > if (have_application ("Python")) { >have_python: >system ("python.exe my_application.py") > } else { >printf ("This software requires python. Wait until all the > necessary components are b

Re: Can .py be complied?

2005-04-29 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> 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 co

Re: Can .py be complied?

2005-04-29 Thread Steve Holden
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 abst

Re: Can .py be complied?

2005-04-29 Thread Simon Brunning
On 28 Apr 2005 07:01:50 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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. It indicates to *m

Re: Can .py be complied?

2005-04-28 Thread monkey
> python -o foo.exe foo.py > Is that a real command that can be use? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-28 Thread Maurice LING
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

Re: Can .py be complied?

2005-04-28 Thread jfj
[EMAIL PROTECTED] 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

Re: Can .py be complied?

2005-04-28 Thread steve.leach
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. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-28 Thread beliavsky
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 j

Re: Can .py be complied?

2005-04-28 Thread Pajo
I've just tried to build both console and windows exe and it works just fine monkey wrote: Thx very much, I got the point now ( ; -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-28 Thread monkey
Thx very much, I got the point now ( ; > The latter. It's not completely self contained, there is an > ..exe and some dll files that need to be distributed together. > It's explained very clearly by the py2exe web site: > > http://starship.python.net/crew/theller/py2exe/ > > Never used google b

Re: Can .py be complied?

2005-04-27 Thread steve.leach
Harlin Seritt wrote: Hi monkey, Not a stupid question especially if you're trying to create commercial software and don't want to reveal your source. At any rate, you can use py2exe to create a .exe file. It does have some cons to it since you Some very severe cons considering that would mean his c

Re: Can .py be complied?

2005-04-27 Thread Grant Edwards
On 2005-04-27, monkey <[EMAIL PROTECTED]> wrote: >> py2exe has nothing to do with C or make files. You create a >> setup.py file containing a couple lines of python. You run >> that python program, and you end up with an .exe file and some >> associated .dll files. I typically use inno-setup to

Re: Can .py be complied?

2005-04-27 Thread monkey
> py2exe has nothing to do with C or make files. You create a > setup.py file containing a couple lines of python. You run > that python program, and you end up with an .exe file and some > associated .dll files. I typically use inno-setup to create an > installer.exe that creates a desktop icon

Re: Can .py be complied?

2005-04-27 Thread Grant Edwards
On 2005-04-27, monkey <[EMAIL PROTECTED]> wrote: > Yes, I want more options. Since the python doc mentioned > py2exe only, and it is difficult to understand how it > work.(may be you guys know C and make file, but I am still > foolish here...) py2exe has nothing to do with C or make files. You c

Re: Can .py be complied?

2005-04-27 Thread monkey
> > But those files can be decompyled. > Hi, so which way to go? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-27 Thread monkey
> And then example.pyc will appear beside example.py. This new file does > not require example.py (you can even delete it), and works on any > computer with Python installed Filip, you can read through my mind (-: You just told me what I want to know exactly, even I can't ask the question correctl

Re: Can .py be complied?

2005-04-27 Thread Maksim Kasimov
"Maurice LING" <[EMAIL PROTECTED]> wrote: news:[EMAIL PROTECTED] > If your application does not use any C modules, you can try to use > Jython instead. Program in python but use jythonc to convert it into > Java source files and package it into Java JAR files, then you will only > need to release

Re: Can .py be complied?

2005-04-27 Thread Lucas Raab
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I don't know the exact details, but try using the compiled Python scripts (bytecode). I believe they are semi-optimized and platform independent. They are the .pyc and .pyo files generated when the script is run. Okay, I found this documentation

Re: Can .py be complied?

2005-04-27 Thread Kent Johnson
monkey wrote: It is generally not very easy or straight-forward. For now, you can use pyfreeze to snap the application. If your application does not use any C modules, you can try to use Jython instead. Cheers Maurice If using Jython to complie, is the end-user need JRE instead of Python insta

Re: Can .py be complied?

2005-04-27 Thread Filip Dreger
U¿ytkownik "monkey" <[EMAIL PROTECTED]> napisa³ w wiadomo¶ci news:[EMAIL PROTECTED] > If using Jython to complie, is the end-user need JRE instead of > Python > installed, or need both of them? Only JRE. Just like Java. >> I don't know the exact details, but try using the compiled Python >> s

Re: Can .py be complied?

2005-04-27 Thread monkey
Thanks all of you guys, I found that python newsgroup is of wealthy knowledge: > If you would like to obfuscate your code (disguise it) without an > executable you can try pyobfuscate as well. > > Harlin Seritt > Yes, I want more options. Since the python doc mentioned py2exe only, and it is diff

Re: Can .py be complied?

2005-04-26 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > I don't know the exact details, but try using the compiled Python > scripts (bytecode). I believe they are semi-optimized and platform > independent. They are the .pyc and .pyo files generated when the script > is run. Okay, I found this documentation

Re: Can .py be complied?

2005-04-26 Thread [EMAIL PROTECTED]
I don't know the exact details, but try using the compiled Python scripts (bytecode). I believe they are semi-optimized and platform independent. They are the .pyc and .pyo files generated when the script is run. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-26 Thread Maurice LING
monkey wrote: 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) It is gener

Re: Can .py be complied?

2005-04-26 Thread Harlin Seritt
Hi monkey, Not a stupid question especially if you're trying to create commercial software and don't want to reveal your source. At any rate, you can use py2exe to create a .exe file. It does have some cons to it since you are compiling an interpreted script but it works fine in this capacity. If