[Pythonmac-SIG] Finding the memory usage of a Python process

2008-04-15 Thread Konrad Hinsen
I am trying to obtain the amount of memory that my Python process uses from inside the Python program using resource.getrusage(). While this works fine under Linux, on the Mac I always get 0 for the memory usage (the time information seems credible though). Does anyone have another idea for

Re: [Pythonmac-SIG] porting VPython to OS X

2006-10-05 Thread Konrad Hinsen
On Oct 4, 2006, at 19:44, Joe Heafner wrote: > I'm an astronomy/physics instructor who makes heavy use of VPython > (http://www.vpython.org) in teaching introductory calculus-based > physics. Currently, the only way to use VPython under OS X is via > Fink, which indeed works very well. However, we

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-10-04 Thread konrad . hinsen
On 03.10.2006, at 19:09, Bob Ippolito wrote: >> Therefore, if it is possible to download and install eggs manually, >> then I am sure there would be a client base for a GUI-based installer >> associated with .egg files. > > It's still very atypical. You'd be coding a GUI client that three > peop

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-10-04 Thread konrad . hinsen
On 03.10.2006, at 12:43, Ronald Oussoren wrote: > I have a patch for setuptools 0.7 that includes header files in > eggs and ensures that other setuptools-aware packages see those > during build_ext. PJE has indicated that something like this will > be added to setuptools in 0.7 timeframe.

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-10-03 Thread Konrad Hinsen
On Oct 2, 2006, at 21:24, Bob Ippolito wrote: > Using easy_install is quite easy -- you type "easy_install > WhatYouNeed" and press return. That's it. Users currently need some > familiarity with Terminal in order to get anything done with Python > anyway. Not necessarily. I know one person who u

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-09-28 Thread konrad . hinsen
On 27.09.2006, at 19:35, Bob Ippolito wrote: >> What I was looking for is actually a bit more modest: I want to >> create an installer that checks that all dependencies are fulfilled. >> Bundling everything in one installer is not always a good idea, as it >> could easily overwrite an already exis

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-09-27 Thread Konrad Hinsen
On Sep 26, 2006, at 10:45, Ronald Oussoren wrote: > You can use bdist_mpkg from the setup script and add additional > subpackages that way. PyObjC uses this to ship the examples and > Xcode templates, this is implemented setup-lib/pyobjc_mpkg.py in > the PyObjC source-tree. Thanks, I'll loo

Re: [Pythonmac-SIG] Why Do I Explicitly Need MacPython

2006-09-26 Thread konrad . hinsen
On 22.09.2006, at 18:51, Bob Ippolito wrote: >> Get Py2app, then use: >> >> bdist_mpkg > > bdist_mpkg -z will produce a zipped .pkg and save you a step... bdist_mpkg works fine for me, but I would like to distribute my packages with added documentation. Is there any way to add a documentation

Re: [Pythonmac-SIG] python 2.5b1

2006-06-23 Thread Konrad Hinsen
On Jun 22, 2006, at 20:10, Ronald Oussoren wrote: > We don't put it in ~/MacOSX/environment.plist because that file > sucks. There's no way to update the value of PATH, you have to > provide a complete replacement. This is too bad because I'd love to > update the environment for all programs

Re: [Pythonmac-SIG] python 2.5b1

2006-06-22 Thread Konrad Hinsen
On Jun 22, 2006, at 19:20, Ronald Oussoren wrote: > You can't please them all :-(. I'll add a warning to the readme > text in the installer. You can turn this feature of during > installation, the profile-editing step is a seperate package that > you can disable using the 'Customize' button.

Re: [Pythonmac-SIG] python 2.5b1

2006-06-22 Thread Konrad Hinsen
On Jun 21, 2006, at 10:42, Ronald Oussoren wrote: > Python 2.5b1 was released today, get it while it's hot: > > Thanks for providing the binaries! I installed them this morning and everything seems to work fine. However, I wasn't very pleas

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread konrad . hinsen
On 06.12.2005, at 18:07, Louis Pecora wrote: > I know about the profiling and find the bottlenecks approach, but then > the choices of what to do are not clear. I have in the past written a > few C modules and turned them into importable Python modules, but that > was really time consuming and fr

Re: [Pythonmac-SIG] WebKit with PyObjC on Jaguar

2005-05-13 Thread konrad . hinsen
On 13.05.2005, at 20:33, Bob Ippolito wrote: > That is correct. The only way to develop a Jaguar compatible > application with Python is to build its components on Jaguar. Is that also true for Panther/Tiger? Assuming that I update all my machines to Tiger, will I still be able to build package

Re: [Pythonmac-SIG] (no subject)

2005-05-11 Thread konrad . hinsen
l situation on the Mac is, but I tend to view the Mac as part of the big Unix family. Konrad. -- - Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61 E-Mail: [EMAIL PROTECTED] --

Re: [Pythonmac-SIG] (no subject)

2005-05-10 Thread konrad . hinsen
Bob Ippolito writes: > Well, you might think that you have particularly good reasons to use > PYTHONPATH, but pth files can do the same thing in a more predictable My particularly good reason is that I set PYTHONPATH differently in different shell environments for testing purposes. Changing

Re: [Pythonmac-SIG] (no subject)

2005-05-09 Thread konrad . hinsen
ven need to know that they were written in Python) to be affected by it. Konrad. -- ----- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.:

[Pythonmac-SIG] (no subject)

2005-05-09 Thread konrad . hinsen
t be sufficient to copy it to "Resources"? Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1

Re: [Pythonmac-SIG] building non-Framework Python 2.4.1 on Tiger

2005-05-04 Thread konrad . hinsen
d just what you want, it's probably the Framework build that requires special action. Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +3

[Pythonmac-SIG] Some Mac packages for downloading

2005-05-04 Thread konrad . hinsen
themselves in the future). I also keep a copy of Numeric 23.7 around, just in case Bob updates his and I can't follow quickly enough. Konrad. -- - Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette

[Pythonmac-SIG] Adding missing modules in py2app

2005-05-04 Thread konrad . hinsen
and installed, I just want them to be included. Is there some other approach that I could try? Konrad. -- - Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69

Re: [Pythonmac-SIG] PyOXIDE wishes?

2005-05-04 Thread konrad . hinsen
a mouse click and have them marked graphically in the editor, right? How many editors have mechanisms that allow retrofitting such functionality? Other than Emacs, I couldn't name any. Konrad. -- --------- Konrad Hinsen Laboratoir

Re: [Pythonmac-SIG] Distinguishing between Aqua Tk and X11 Tk

2005-05-03 Thread konrad . hinsen
ine :-) Konrad. -- ----- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61 E-Mail: [EMAIL PROTEC

Re: [Pythonmac-SIG] py2app question

2005-05-02 Thread konrad . hinsen
documentation! Konrad. -- ----- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61 E-Mail: [E

[Pythonmac-SIG] Distinguishing between Aqua Tk and X11 Tk

2005-05-02 Thread konrad . hinsen
ot; in that case. Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61

Re: [Pythonmac-SIG] py2app question

2005-05-02 Thread konrad . hinsen
his executable that py2app creates? And how is it built? Understanding the launch procedure in detail certainly helps with debugging. Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, Fra

Re: [Pythonmac-SIG] Which Python are people going to use?

2005-04-29 Thread konrad . hinsen
ore Personally, I agree, but then I know how important the "they already have it" (plus "it's the official Apple version") argument is for many others. Since I publish packages for the benefit of others, I do listen to them. Konrad. -- -------

Re: [Pythonmac-SIG] Building packages

2005-04-28 Thread konrad . hinsen
le to update my packages a day after Numeric changes. Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61 E-Mail: [

Re: [Pythonmac-SIG] Building packages

2005-04-28 Thread konrad . hinsen
y, or better offer a copy on my own server to be sure to have 23.7 at all times? Konrad. -- - Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82

Re: [Pythonmac-SIG] Which Python are people going to use?

2005-04-28 Thread konrad . hinsen
ier if the Mac world could agree on a single Python version. Konrad. -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fa

[Pythonmac-SIG] Building packages

2005-04-26 Thread konrad . hinsen
I have both Apple's Python 2.3 and MacPython 2.4.1 installed on my machine, both with some add-on packages from pythonmac.org. I had noticed when installing them that the packages for Python 2.3 and Python 2.4 have identical names, meaning that the second one to be installed is treated as an "u

Re: [Pythonmac-SIG] Package installation

2005-04-18 Thread konrad . hinsen
ons. That of course points to the major problem of all attempts at handling Python packages: acceptance. There even still packages around that don't use distutils. Konrad. -- ---- --- Konrad Hinsen Laboratoire Leon

Re: [Pythonmac-SIG] Package installation

2005-04-18 Thread konrad . hinsen
de. That was my plan, but it's always good to check first if there are some evident problems that were overlooked. Konrad. -- -------- --- Konrad Hinsen Laboratoire Leon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, Fran

Re: [Pythonmac-SIG] Package installation

2005-04-18 Thread konrad . hinsen
Python packages? Konrad -- --------- Konrad Hinsen Laboratoire Léon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Cedex, France Tel.: +33-1 69 08 79 25 Fax: +33-1 69 08 82 61

[Pythonmac-SIG] Package installation

2005-04-18 Thread konrad . hinsen
While installing some Mac applications, I wondered if Python package installation could not be just as simple as application installation: copy a bundle to some folder (/Applications/PythonPackages or /Library/Python or whatever) and use it. For updating, throw away the old bundle and install t

Re: [Pythonmac-SIG] ANN: AquaMacs distribution of Emacs

2005-04-07 Thread konrad . hinsen
On 07.04.2005, at 18:35, Kevin Walzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In case anyone is interested, David Reitter and I are working on a distribution of Carbon Emacs that includes a lot of Aqua-specific customizations (keyboard shortcuts, use of native file dialogs, etc.) to

Re: [Pythonmac-SIG] IDE recommendation

2005-04-07 Thread konrad . hinsen
interactive testing and debugging. I wish a single tool would be good for both, but I can live with those two rather well. Konrad. -- -------- --- Konrad Hinsen Laboratoire Leon Brillouin, CEA Saclay, 91191 Gif-sur-Yvette Ce

Re: [Pythonmac-SIG] RE: IDE recommendation

2005-03-31 Thread konrad . hinsen
On 30.03.2005, at 09:42, Lee Cullens wrote: I've got Leo up and running. It isn't everything I would like in a sandbox but it does have an intriguing organizational approach that I'll either learn to love or hate :~). Would like to first figure out how to keep it from opening up Leo is interest