Re: [Pythonmac-SIG] py2app Enforces Directory Structure?

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 11:39 PM, Erik Westra wrote: I don't need to include anything else in the application, as the system will store the contents of the "data" and other directories outside of the application bundle itself. Don't do that. That's bad. Include the data and any other dependencies i

[Pythonmac-SIG] Tkinter and Python 2.2

2004-12-21 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, I'm cross-posting this to the MacPython list because a lot of your questions are relevant there. The Mac/Tkinter bindings are maintained by the MacPython developers, not the TkAqua maintainers, although they require the TkAqua libraries. Can any

Re: [Pythonmac-SIG] py2app Enforces Directory Structure?

2004-12-21 Thread Erik Westra
Hi Bob, Wow -- that was fast! > "build" sure is a dangerous name to use, considering that it's > typically the name of a scratch directory in Python terms. Thanks...I wasn't aware of that. > setup.py assumes that it can find all of the dependencies via normal > import mechanisms. If you want i

Re: [Pythonmac-SIG] py2app Enforces Directory Structure?

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 10:29 PM, Erik Westra wrote: I'm in the process of converting a large wxPython application written for MS Windows to run on the Mac. The application itself now works, and I'm at the stage of trying to bundle it up using py2app for distribution. Unfortunately, it seems that the

[Pythonmac-SIG] py2app Enforces Directory Structure?

2004-12-21 Thread Erik Westra
Greetings, Pythonmac folks! I was wondering if someone could help me with a problem I'm having with py2app. I'm in the process of converting a large wxPython application written for MS Windows to run on the Mac. The application itself now works, and I'm at the stage of trying to bundle it up usi

Re: [Pythonmac-SIG] py2app standalone options

2004-12-21 Thread Jordan Krushen
On Fri, 17 Dec 2004 17:20:01 -0500, Bob Ippolito <[EMAIL PROTECTED]> wrote: > py2app tries very hard, by default, to make the Python environment > consistent regardless of what the end user has done to their system. > This includes stomping on any PYTHONPATH and ignoring any site-packages > that t

Re: [Pythonmac-SIG] Where to put data

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 6:57 PM, Charles Hartman wrote: On Dec 21, 2004, at 3:32 PM, Bob Ippolito wrote: On Dec 21, 2004, at 10:23 AM, Charles Hartman wrote: (I also posted this to wxusers because it's sort of cross-platform -- sorry if you're seeing it again.) With an earlier app I wanted an extern

Re: [Pythonmac-SIG] Installing Twisted-1.3.0

2004-12-21 Thread Bryan Blackburn
On Dec 21, 2004, at 4:13 PM, Jack Jansen wrote: On 21-dec-04, at 23:38, Bob Ippolito wrote: building 'twisted.spread.cBanana' extension gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.7.0-Power_Macintosh-2.3/twisted/spread/cBanana.o -o build/lib.darwin-7.7.0-Power_Macintosh-2.3

Re: [Pythonmac-SIG] Where to put data

2004-12-21 Thread Charles Hartman
OK, all this makes sense. But I'm startled to see how incredibly gnarly it is to have any kind of data -- if you want to preserve changes in the data, say by having a dictionary grow from one program run to the next -- at least on more than one platform. Is this so uncommon a pattern for applicatio

Re: [Pythonmac-SIG] py2app standalone options

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 5:42 PM, has wrote: Chris Barker wrote: I originally came down on Has' side of this debate, but now think Bob has made the right choices, so I thought I'd add a couple comments. First, I'm a little unclear on what exactly Has wants. Could you clarify? Freedom, basically. It's

[Pythonmac-SIG] Installing Twisted-1.3.0

2004-12-21 Thread Erik van Blokland
Hi, this question might be more appropriate for a twisted forum. But before I throw myself to the wild animals, perhaps someone on this list has a clue for me. I'm attempting to install Twisted-1.3.0 on a G4 powerbook. I have installed the same version of twisted on a different G4 with OSX

RE: [Pythonmac-SIG] Read Strings from Resources

2004-12-21 Thread Opstad, Dave
> I've filed a bug report (#1089399), so it'll be fixed, but that's a > long term thing (not before 2.5). In the short term you'll have to > parse the STR# resource yourself. I'm not 100% sure, but I think > they're just a null-byte separated list. If they're something else (a > list of Pascal stri

[Pythonmac-SIG] Re: Python Framework vs 'traditional' was Re: version numbers and dependencies

2004-12-21 Thread Michael Maibaum
On 17 Dec 2004, at 16:08, Markus Weissmann wrote: On Dec 17, 2004, at 16:58, Bob Ippolito wrote: On Dec 17, 2004, at 10:26 AM, Markus Weissmann wrote: On Dec 17, 2004, at 16:04, Bob Ippolito wrote: Yes, default on darwin/mac os x is what we both meant :) did someone already tried to compile python

Re: [Pythonmac-SIG] Installing Twisted-1.3.0

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 5:22 PM, Erik van Blokland wrote: this question might be more appropriate for a twisted forum. But before I throw myself to the wild animals, perhaps someone on this list has a clue for me. I'm attempting to install Twisted-1.3.0 on a G4 powerbook. I have installed the same

Re: [Pythonmac-SIG] Installing Twisted-1.3.0

2004-12-21 Thread Jack Jansen
On 21-dec-04, at 23:38, Bob Ippolito wrote: building 'twisted.spread.cBanana' extension gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.7.0-Power_Macintosh-2.3/twisted/spread/cBanana.o -o build/lib.darwin-7.7.0-Power_Macintosh-2.3/twisted/spread/cBanana.so ld: can't locate file

Re: [Pythonmac-SIG] Read Strings from Resources

2004-12-21 Thread Jack Jansen
On 20-dec-04, at 20:06, [EMAIL PROTECTED] wrote: I working on a project, where I want to read a STR# resource and write it into an xml file. With Carbon.Res I can easily access the file an read the string Resources for each ID. But with the Res.Get1Resource('STR#', id).data I get all the strings

Re: [Pythonmac-SIG] py2app standalone options

2004-12-21 Thread has
Chris Barker wrote: I originally came down on Has' side of this debate, but now think Bob has made the right choices, so I thought I'd add a couple comments. First, I'm a little unclear on what exactly Has wants. Could you clarify? Freedom, basically. It's easier to assemble a workflow by mixing a

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-21 Thread Jack Jansen
The PythonIDE not starting problem is completely unrelated to your other problems. You've encountered a bug in the IDE (for which I'll add a FAQ entry shortly). If you've set your IDE scripts directory to something containing more than 200-something files the menu building code runs out of

Re: [Pythonmac-SIG] Where to put data

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 10:23 AM, Charles Hartman wrote: (I also posted this to wxusers because it's sort of cross-platform -- sorry if you're seeing it again.) With an earlier app I wanted an external data file and everybody told me to make it internal to the program (the app's Resources, I guess)

[Pythonmac-SIG] Re: Where to put data

2004-12-21 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Charles Hartman <[EMAIL PROTECTED]> wrote: >...a file of data...which will grow and change as the app is used; when the > app terminates the data ought to be saved with it for next time. In > this case I don't want users fiddling with it apart from the app. >

Re: [Pythonmac-SIG] Where to put data

2004-12-21 Thread Chris Barker
Charles Hartman wrote: With an earlier app I wanted an external data file and everybody told me to make it internal to the program (the app's Resources, I guess) instead. I couldn't, then. Now with a new app I want to do just that, but I'm not sure *how* to do it! It's a file of data -- a Pytho

[Pythonmac-SIG] Where to put data

2004-12-21 Thread Charles Hartman
(I also posted this to wxusers because it's sort of cross-platform -- sorry if you're seeing it again.) With an earlier app I wanted an external data file and everybody told me to make it internal to the program (the app's Resources, I guess) instead. I couldn't, then. Now with a new app I want

Re: [Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-21 Thread Bob Ippolito
On Dec 21, 2004, at 7:22 AM, Brian Lenihan wrote: >> 208-186-56-189:/sw/bin jis$ cat /sw/bin/idle2.3 >> #!/sw/bin/python Which python is first on your path? IIRC there is a feature in darwin that wreaks havoc with the setup code in python that finds the correct prefix (and library). This ends up al

[Pythonmac-SIG] Re: Pythonmac-SIG Digest, Vol 20, Issue 24

2004-12-21 Thread Brian Lenihan
>> 208-186-56-189:/sw/bin jis$ cat /sw/bin/idle2.3 >> #!/sw/bin/python Which python is first on your path? IIRC there is a feature in darwin that wreaks havoc with the setup code in python that finds the correct prefix (and library). This ends up always picking the prefix for the first python on th