Re: Freeze statically

2011-07-15 Thread Sebastien Dudek
Actually, there is a solution but not very clean. I was surprise by two différent tools: - Statifier (but it needs to be compiled without ASLR) - And ErminePro which is very powerful to transform dynamic executables to static. But if someone is aware about compiling python code to static more pro

Re: freeze function calls

2010-08-11 Thread Santiago Caracol
Peter, thanks again for all this code. You helped me a lot. > Didn't you say you weren't interested in the web specific aspects? I thought that, although my problem had to do with client-server stuff, it wasn't really web-specific. But now I think that that was part of my problem. I failed to se

Re: freeze function calls

2010-08-10 Thread Peter Otten
Santiago Caracol wrote: >> Run the above with >> >> $ python wsgi_demo.py >> Serving on port 8000... >> > > Thanks a lot for this code. The problem with it is that the whole > application IS a generator function. That means that if I run the code > at, say foo.org, then any user that visits the s

Re: freeze function calls

2010-08-10 Thread Santiago Caracol
> Run the above with > > $ python wsgi_demo.py > Serving on port 8000... > Thanks a lot for this code. The problem with it is that the whole application IS a generator function. That means that if I run the code at, say foo.org, then any user that visits the site will augment the answer number of

Re: freeze function calls

2010-08-10 Thread Peter Otten
Santiago Caracol wrote: >> Python offers an elegant mechanism to calculate values on demand: the >> generator function: >> >> >>> def calculate_answers(): >> >> ... for i in range(100): >> ... print "calculating answer #%d" % i >> ... yield i * i >> ... >> > > Thanks f

Re: freeze function calls

2010-08-10 Thread Santiago Caracol
> Python offers an elegant mechanism to calculate values on demand: the > generator function: > > >>> def calculate_answers(): > > ...     for i in range(100): > ...             print "calculating answer #%d" % i > ...             yield i * i > ... > Thanks for pointing this out. I was aware of th

Re: freeze function calls

2010-08-10 Thread Peter Otten
Santiago Caracol wrote: > Hello, > > I want to write a web application that does this: > > (1) The user submits a query: > > - > | What is the answer? | > - > > > (2) The web server gives the user N answers and a button saying "M

Re: freeze in python3

2009-12-10 Thread Patrick Stinson
awesome! On Thu, Dec 10, 2009 at 2:17 PM, Martin v. Loewis wrote: >> For example, initerrno should now be PyInit_errno. Am I missing something? > > No; freeze hasn't been ported to Python 3 yet. Contributions are welcome. > > Regards, > Martin > -- > http://mail.python.org/mailman/listinfo/python

Re: freeze in python3

2009-12-10 Thread Martin v. Loewis
> For example, initerrno should now be PyInit_errno. Am I missing something? No; freeze hasn't been ported to Python 3 yet. Contributions are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: freeze in python3

2009-12-10 Thread Almar Klein
Hi Patrick, It's not exactly what you asked, but I've been able to freeze a Python 3 project using cx_Freeze. Almar 2009/12/10 Patrick Stinson : > NOTE: This is related but is not a duplicate of my post from yesterday. > > Has anyone used Tools/freeze/freeze.py in python3? I tried it with a > c

Re: Freeze problem with Regular Expression

2008-07-01 Thread Kirk
On Mon, 30 Jun 2008 13:43:22 -0700, John Machin wrote: >> I reply here to all of you about such point: that's not important, >> although I appreciate very much your suggestions! My point was >> 'something that works in Perl, has problems in Python'. > > It *is* important; our point was 'you didn'

Re: Freeze problem with Regular Expression

2008-06-30 Thread John Machin
On Jul 1, 12:45 am, Kirk <[EMAIL PROTECTED]> wrote: > On Wed, 25 Jun 2008 15:29:38 -0700, John Machin wrote: > > Several problems: > > Ciao John (and All partecipating in this thread), > first of all I'm sorry for the delay but I was out for business. > > > (1) lose the vertical bars (as advised by

Re: Freeze problem with Regular Expression

2008-06-30 Thread Kirk
On Wed, 25 Jun 2008 15:29:38 -0700, John Machin wrote: > Several problems: Ciao John (and All partecipating in this thread), first of all I'm sorry for the delay but I was out for business. > (1) lose the vertical bars (as advised by others) (2) ALWAYS use a raw > string for regexes; your \s* wi

Re: Freeze problem with Regular Expression

2008-06-26 Thread Peter Pearson
On Thu, 26 Jun 2008 11:20:01 -0500, Peter Pearson wrote: > On 25 Jun 2008 15:20:04 GMT, Kirk <[EMAIL PROTECTED]> wrote: [snip] >> the following regular expression matching seems to enter in a infinite >> loop: [snip] >> import re >> text = ' MSX INTERNATIONAL HOLDINGS ITALIA srl (di seguito MSX IT

Re: Freeze problem with Regular Expression

2008-06-26 Thread Peter Pearson
On 25 Jun 2008 15:20:04 GMT, Kirk <[EMAIL PROTECTED]> wrote: > Hi All, > the following regular expression matching seems to enter in a infinite > loop: > > > import re > text = ' MSX INTERNATIONAL HOLDINGS ITALIA srl (di seguito MSX ITALIA) > una ' > re.findall('[^A-Z|0-9]*((?:[0

Re: Freeze problem with Regular Expression

2008-06-26 Thread John Machin
On Jun 26, 8:29 am, John Machin <[EMAIL PROTECTED]> wrote: > (2) ALWAYS use a raw string for regexes; your \s* will match on lower- > case 's', not on spaces and should have written: (2) ALWAYS use a raw string for regexes. <<<=== Big fat full stop aka period. but he was at the time only half-wa

Re: Freeze problem with Regular Expression

2008-06-25 Thread John Machin
On Jun 26, 1:20 am, Kirk <[EMAIL PROTECTED]> wrote: > Hi All, > the following regular expression matching seems to enter in a infinite > loop: > > > import re > text = ' MSX INTERNATIONAL HOLDINGS ITALIA srl (di seguito MSX ITALIA) > una ' > re.findall('[^A-Z|0-9]*((?:[0-9]*[A-Z]+[

Re: Freeze problem with Regular Expression

2008-06-25 Thread Maric Michaud
Le Wednesday 25 June 2008 18:40:08 cirfu, vous avez écrit : > On 25 Juni, 17:20, Kirk <[EMAIL PROTECTED]> wrote: > > Hi All, > > the following regular expression matching seems to enter in a infinite > > loop: > > > > > > import re > > text = ' MSX INTERNATIONAL HOLDINGS ITALIA srl

RE: Freeze problem with Regular Expression

2008-06-25 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Kirk > Sent: Wednesday, June 25, 2008 11:20 AM > To: python-list@python.org > Subject: Freeze problem with Regular Expression > > Hi All, > the following regular expression matching seems to en

Re: Freeze problem with Regular Expression

2008-06-25 Thread cirfu
On 25 Juni, 17:20, Kirk <[EMAIL PROTECTED]> wrote: > Hi All, > the following regular expression matching seems to enter in a infinite > loop: > > > import re > text = ' MSX INTERNATIONAL HOLDINGS ITALIA srl (di seguito MSX ITALIA) > una ' > re.findall('[^A-Z|0-9]*((?:[0-9]*[A-Z]+[0

Re: freeze and problem with static libraries

2007-04-25 Thread Flyzone
On 24 Apr, 17:23, Flyzone <[EMAIL PROTECTED]> wrote: > I get this warning on freezing my source: I use the command: ./Python-2.3.6/Tools/freeze/freeze.py /path/to/my/file.py -- http://mail.python.org/mailman/listinfo/python-list

Re: freeze and problem with static libraries

2007-04-25 Thread Chris Miles
What command are you using to "freeze" your source? On Apr 24, 4:23 pm, Flyzone <[EMAIL PROTECTED]> wrote: > Hi, i need to "compile" a python source (2.3.6) to make it standalone > on Solaris 9. > I get this warning on freezing my source: > > "Warning: unknown modules remain: _locale _random _sock

Re: Freeze vs cx_Freeze

2007-04-06 Thread Phil Thompson
On Friday 06 April 2007 9:08 am, mathieu wrote: > Hello, > >I am currently investigating how to distribute a python based > application on a targeted linux system (debian) and so far I only > found two options: > - Freeze (shipped with python dist) > - cx_Freeze (*) > > As far as I understand t

Re: Freeze packaging for Debian

2007-02-13 Thread Paul Boddie
On 13 Feb, 16:48, [EMAIL PROTECTED] (Cameron Laird) wrote: > How is Freeze--freeze.py http://wiki.python.org/moin/Freeze>--packaged > for Debian? *Is* it packaged for Debian? A search for freeze.py in package contents conducted from the Debian packages page [1] indicates that the file in question

Re: freeze tool like perl2exe?

2006-05-23 Thread Jerry
I did look at cx_Freeze at one point in time, but the documentation on their site is pretty sparse and doesn't actually mention being able to build for a different platform. I'll take another look. Thanks. -- Jerry -- http://mail.python.org/mailman/listinfo/python-list

Re: freeze tool like perl2exe?

2006-05-23 Thread John Bokma
Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Jerry napisal: > >> I am looking for a freeze tool for Python that is similar to perl2exe >> in that I can "compile" a script on one platform that is built for >> another. Basically, I would like to be able to build a Python script >> for Solaris using my

Re: freeze tool like perl2exe?

2006-05-23 Thread utabintarbo
CX_Freeze? http://starship.python.net/crew/atuining/cx_Freeze/ -- http://mail.python.org/mailman/listinfo/python-list

Re: freeze tool like perl2exe?

2006-05-23 Thread Jarek Zgoda
Jerry napisal: > I am looking for a freeze tool for Python that is similar to perl2exe > in that I can "compile" a script on one platform that is built for > another. Basically, I would like to be able to build a Python script > for Solaris using my Windows workstation. Is there any tool that fi

Re: Freeze

2005-07-28 Thread pythonUser_07
What happens when you take a copy of python23.dll and put it in the path on that machine? Does the program run? If so, (and I am not familiar with freeze) it seems freeze did not put the dll into the .exe file. -- http://mail.python.org/mailman/listinfo/python-list