Re: [Pythonmac-SIG] How to tell if a .app is clicked again?

2005-08-16 Thread Chris Barker
Nicholas Riley wrote: >>Which leads me to another idea: Can I tell OS-X that I DO want another >>instance of the app launched rather than raising an existing one? > You can do this (LaunchServices lets you multi-launch apps, or you can > always execute the binary directly), but not from the Find

Re: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework

2005-08-19 Thread Chris Barker
otlib package that includes the shared libs required, you might try to find out how he did it. http://sda.iu.edu/projects.html Also be sure to check out Robert Kern's MacEnthon project as well. http://www.scipy.org/wikis/featurerequests/MacEnthon -Chris > On 12 Aug, 2005, at 13:47, Ch

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Chris Barker
Just to add my $0.02 for completeness: People use: #!/usr/bin/env python so that the script will work on any system with a python on the PATH, whether it's in /usr/bin or /usr/local/bin or wherever else. Particularly on Linux systems, python gets installed different places depending on whethe

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-09-02 Thread Chris Barker
Bob Ippolito wrote: >> I really wish specifying the version would become standard practice in >> python development. > > That cuts both ways, for a lot of scripts you don't give a damn which > python it is and changing the hash-bang every time you upgrade is a pain. True. I actually make a cho

[Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Chris Barker
HI all, Apple's python seamed to come with the CoreGraphics module. Can I get that same module for python2.4.1 (form undefined.org)? If so, how? OS-X 10.3, if it matters. thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R

Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-12 Thread Chris Barker
Nicholas Riley wrote: >>Apple's python seamed to come with the CoreGraphics module. Can I get >>that same module for python2.4.1 (form undefined.org)? If so, how? >> >>OS-X 10.3, if it matters. > > Nope, the module is closed-source (most likely because it uses > CoreGraphics/Cocoa SPI to do cr

Re: [Pythonmac-SIG] messed up Tiger python install

2005-09-13 Thread Chris Barker
Robert Kern wrote: > But please consider writing clear documentation telling people how to > modify their $PATH, instead. If you do that please be sure to mention that you can also just use: python2.4 at the prompt and in the #! line of scripts. You probably need to put "/usr/local/bin" in the

Re: [Pythonmac-SIG] troubles with distutils

2005-09-17 Thread Chris Barker
andrea valle wrote: > Now I want to install pyx (http://pyx.sourceforge.net/) but it seems > that I am not able to. > > this is my command line: > > apples-Computer:~ apple$ python /Users/apple/Desktop/PyX-0.8.1/setup.py > install > running install > error: $MACOSX_DEPLOYMENT_TARGET mismatch: n

Re: [Pythonmac-SIG] Using distutils with XCode

2005-09-30 Thread Chris Barker
Paul Kinnane wrote: > the distutils on OSX10.4. I don't have CodeWarrior 7 and wondered if it > was possible to manually compile the library using XCode? I see it is > possible using MPW > (http://www.nevada.edu/~cwebster/Python/MPWHOWTO/MPWHOWTO.html) - that is a very old doc, and only applies

Re: [Pythonmac-SIG] Extending Python (OS 10.3.9)

2005-09-30 Thread Chris Barker
The best advice I can give you is to use distutils to do the compiling for you. It knows about all the include and linking directories that are required: http://docs.python.org/dist/dist.html If your case is simple, which it seems to be so far, you can write a very simple setup.py script, and

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-03 Thread Chris Barker
Paul Kinnane wrote: > OK, I found I could compile and successfully import the test.c sample > from http://www.nevada.edu/~cwebster/Python/MPWHOWTO/MPWHOWTO.html using > the Darwin "python setup.py install" command. > > However, I'm trying to compile a wrapper for the ode physics engine. > The wrap

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-05 Thread Chris Barker
Paul, I don't really have much more to offer here. As I mentioned, I ran into a similar problem a while back, but never really solved it...I just converted my C++ code to C. I'm hoping someone that really knows what they are doing could help. In the meantime, one thing to try is to look for an

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-05 Thread Chris Barker
Paul Kinnane wrote: > I have now got the library compiled and working in Dawrin python. I > simply compiled and linked with g++ instead of gcc (I did this by > manually entering the compile and link commands that setup.py was > issuing, changing "gcc" to "g++'). I'd still like to know how to make

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-06 Thread Chris Barker
Bob Ippolito wrote: > I'm relatively sure that distutils does support CW. For a CFM build? > No clue about > MPW. Either way MacPython-OS9 is a dead end. Agreed, I wonder what the OP really needs. Bob, now that we have your attentionHow would the OP get the setup.py he's working with to

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-07 Thread Chris Barker
Paul Kinnane wrote: > I'm in the unfortunate position to need to be using Python2.2. Do you need Python 2.2? or so you need to run under Classic? If the former, and not the later, perhaps you can get 2.2 compiled for OS-X. If you need a straight unix-y python, it should be doable. In fact, I thi

Re: [Pythonmac-SIG] py2app...

2005-10-07 Thread Chris Barker
[EMAIL PROTECTED] wrote: > I did not succed for Mac with py2app on a friend's macOSX Panther... 1) What problem[s] did you have? We cant help if we don't know. 2) Does it run at the command line, without Py2app? >resultat=resultat+dirpath+"\\"+filename+"\n" don't hard code backslashes ( r"\

Re: [Pythonmac-SIG] Using distutils with XCode

2005-10-09 Thread Chris Barker
Paul Kinnane wrote: > The python extension I am trying to compile is for a 3d graphics > animation package - which has a Python2.2 (carbon) interface. If it's carbon under OS-X, then it could be either Mach-O, which you should be able to do with gcc. However if the binary can run under both OS-

Re: [Pythonmac-SIG] Non-Qt basic question

2005-10-14 Thread Chris Barker
Terry Jones wrote: > Ok, thanks for looking. I've been putting off moving to 10.4 because I will > need to rebuild many things. Now it looks like I have a good reason. Well, perhaps, but as far as I can tell, there is still some open-source software that doesn't work so well on 10.4 (gcc 4.0 issue

Re: [Pythonmac-SIG] packagemanager for Tiger

2005-10-20 Thread Chris Barker
Jack Nutting wrote: > Your best bet is to first of all get the packages you can from Bob's > site (http://pythonmac.org/packages/), and get used to using the > command-line to install anything else you need. And when you do, make a package out of it, and contribute it to Bob's site, so it'll be e

Re: [Pythonmac-SIG] [OT] Quicktime/Buffer API

2005-10-26 Thread Chris Barker
michael ferraro wrote: > I need to eliminate any copies of a PixMaps used > by a Quicktime Movie that I am texture mapping > with OpenGL. I have built an extension in "C" but > I am a bit unclear as to how to "circumvent" the the > copy done by Py_BuildValue. > > I was wondering if any one has a

Re: [Pythonmac-SIG] [q] Help with choosing "right" python port

2005-10-26 Thread Chris Barker
Kent Quirk wrote: > The thing to realize is that IDLE is a TK application...and so is the > turtle graphics. They conflict. Huh? I thought you could run TK apps form IDLE, and indeed that the newer IDLE ran the app in separate process, just to avoid this kind of problem! However, IDLE and TkInt

Re: [Pythonmac-SIG] [OT] Quicktime/Buffer API

2005-10-26 Thread Chris Barker
michael ferraro wrote: > The data is a simple unsigned char * Thats just what NumPy's ArrayFromDimsAndData() (or something like that) expects. However, one issue is that if you don't copy the data, then it's hard to have Python manage the garbage collection, you need to figure out how (and when

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: > I has some small program in C which is compiled as .so library in > Linux and I can directly import name_of_lib.so as a module from > python when I run it on Linux. It looks same if I just see them from > Terminal window on Mac. Did anyone compile any C code as library > called by

Re: [Pythonmac-SIG] embedded C in MacPython

2005-10-27 Thread Chris Barker
Zhi Peng wrote: > Hi! Chris Thanks a lot for your email. It is exactly what I would > like to have. I use MacPython 2.3. But unfortunately, on my Mac 10.4 > Tiger, Are you using the 2.3 that Apple provided? If so, I think the headers you need are there, but I don't have Tiger. If they are not the

Re: [Pythonmac-SIG] py2app generated app, not acting as a stand-alone app

2005-11-02 Thread Chris Barker
Richard Rodriguez wrote: > I guess it executes it "like a real CGI script". This is probably not the best mmodel to use for what you are doing. If I understand correctly, you're trying to write a small, stand-alone, custom web server, that the user can click on, then interact with through the

Re: [Pythonmac-SIG] Building Pthreads Statically (slightly off topic)

2005-11-03 Thread Chris Barker
Samuel M. Smith wrote: > I am building python on an embedded linux box. I tried to sign up for > the comp.lang.python mailinglist Just so you know, It's also a newsgroup, so you can get to it with a regular usenet client and/or other systems like google groups. -Chris -- Christopher Barker

Re: [Pythonmac-SIG] py2app and PIL question

2005-11-17 Thread Chris Barker
Chris, You might want to send a bug report to the PIL folks, it would have been really helpful for you to get a message like: "can't find file: vera.ttf", rather than the generic "Resource not found" error, or whatever you got. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Pythonmac-SIG] Interactive shell

2005-11-22 Thread Chris Barker
Abe Mathews wrote: > You need to create a link in /usr/bin to python2.4. Sorry Abe, but: DON'T DO THAT There are standard ways to do things that will prevent you from messing up your system. Rule of thumb: don't mess with anything in /usr or /system. That's Apple's job. When you add things,

Re: [Pythonmac-SIG] Interactive shell

2005-11-23 Thread Chris Barker
I've never been able to figure out when to use .profile vs .bashrc, but I thought it had to do with only one of them being run when a subshell was started, or something like that. I do note that on both my OS-X and Linux boxes, /etc/profile sources bashrc, and uses bash syntax, so it sure looks

Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-11-29 Thread Chris Barker
Jeffrey E. Forcier wrote: >> I also seem to remember BBEdit not having that >>issue for some reason, but it wasn't worth the price tag for that >>one tweak. >> TextWrangler/BBEdit is an *excellent* editor, so be sure to try it out >> yourself Yes, it is, but it really doesn't do python inden

Re: [Pythonmac-SIG] Selecting in BBEdit & Python Indenting style (spaces)

2005-11-29 Thread Chris Barker
Louis Pecora wrote: > You hold down the option key while selecting, but you cannot do this > in the soft wrap mode. You have to set the window to hard wrap at > some column number. If you have the BBEdit manual, you can find more > info around page 52 or just look in the index. thanks. > What

Re: [Pythonmac-SIG] Selecting in BBEdit & Python Indenting

2005-11-30 Thread Chris Barker
Ryan Wilcox wrote: > Hmm... another idea would be to write a script and attach it to BBEdit's Save > item so that it automatically performs Detab on your source code. Write in > tabs, have it automagically convert to spaces. Such a script is below: > > --name this "File•Save" and put it in the >

Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?

2005-11-30 Thread Chris Barker
Dave wrote: > I'm not done with installs. I tried to install matplotlib from source > to get a current version. That went equally as well (i.e., bad), > possibly for similar reasons, but that's another story. Did you follow the process I used for the older MPL package at pythonmac.org? The i

Re: [Pythonmac-SIG] readline support in ActivePython 2.4.2?

2005-11-30 Thread Chris Barker
Dave wrote: > Chris, > I did try to use those notes Those notes specifically addressed how to statically link the extra libs, so you probably missed something, which is probably because I didn't write them very clearly. > I posted > a question with the error report on matplotlib-users I saw

Re: [Pythonmac-SIG] py2app with ZODB

2008-01-10 Thread Chris Barker
Kenneth Miller wrote: > I'm trying to build a Mac .app using py2app with python code that > uses ZODB, can anyone give me some help, or maybe an example? Have you tried it yet? What problems are you having? In theory, it should "just work", but in reality, more complex packages sometimes

Re: [Pythonmac-SIG] module 'New' no in MacPython?

2008-08-06 Thread Chris Barker
Matthew O'Meara wrote: I'm trying to port a swig based application to run on OSX. But it seems that MacPython does not build the module 'New' by default I haven't had any issues with SWIG on OS-X. I also have no idea what the module "New" is. Can you be more specific as to what exactly you ar

Re: [Pythonmac-SIG] module 'New' no in MacPython?

2008-08-07 Thread Chris Barker
Bill Janssen wrote: There is a Python standard library module called "new", and the Mac filesystem is case-insensitive... Try doing % touch new % touch New % ls case-insensitive, yet case-preserving -- weird. apparently the case preserving does effect *nix apps like python. You can:

Re: [Pythonmac-SIG] Yet another problem with path

2008-08-07 Thread Chris Barker
Timothy Grant wrote: While command lines can be made to lie, it concerns me that it looks like you're using and Administrator account to do all this work. Administrators have far to much power and can do far too much damage far too quickly. very true. However, OS-X be default does not allow an

Re: [Pythonmac-SIG] LXML with py2app

2008-08-07 Thread Chris Barker
Kenneth Miller wrote: This is what I'm encountering. Here i printed the sys.path, why does this include modules local to the machine? I want it to be independent of any local resources? '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', This is Apple's installed python

Re: [Pythonmac-SIG] os 9.2

2009-08-19 Thread Chris Barker
Suresh Krishna wrote: i have to work with mac OS 9.2 for legacy reasons...is there a compiled version of python for this os ? It looks like Jack Jansen's old page is still there, complete with downloads: http://homepages.cwi.nl/~jack/macpython/download.html Look for EasyDialogs, I think it'

Re: [Pythonmac-SIG] check if wxpython has been installed properly

2009-08-21 Thread Chris Barker
Edward Moy wrote: I seem to think that on Tiger, one needed to use pythonw to get GUI access (the regular python is just the plain command line tool, and the window server doesn't allow plain commands to access the GUI). This was changed in Leopard so that either python or pythonw worked. O

Re: [Pythonmac-SIG] Latest Py2app bug..

2009-10-14 Thread Chris Barker
Ronald Oussoren wrote: Is anyone interested in helping to create a testsuite for py2app? The first priority would be to have some blackbox tests, unittests can be added later. good idea. The testcases would be simple applications with a setup.py and a verification script. Testcases should

Re: [Pythonmac-SIG] Framework does not get copied for standalone build: 0.4.3

2009-10-14 Thread Chris Barker
Kevin Walzer wrote: I wonder if the problem is with py2applet and the build script it generates? Maybe, you seem to be making this more complicated than it should be. This should do it: from setuptools import setup APP = ['GridZilla.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True,

Re: [Pythonmac-SIG] Framework does not get copied for standalone build: 0.4.3

2009-10-14 Thread Chris Barker
that Chris Barker mentioned. Then not only do I not get the python built into the bundle . But the linking is all messed up and I get the error. I think those two are the same error -- it's trying to link relative to the python exe. Anyway, it appears you've found a bug. What I'

Re: [Pythonmac-SIG] C Extension Scipy/Numpy

2010-02-25 Thread Chris Barker
brennsuppa wrote: I want to gain performance by using C for the computation of some arrays. To do that I used this as a help: http://www.scipy.org/Cookbook/C_Extensions/NumPy_arrays I highly recommend that you use Cython instead: http://wiki.cython.org/tutorials/numpy It is much easier, and y

Re: [Pythonmac-SIG] Building 32-bit on Snow Leopard with tkinter/IDLE (was: Recommended Tcl/Tk with Py-2.6.x)

2010-03-11 Thread Chris Barker
Tom, Thanks for the summary. Tom Loredo wrote: I should have added: If you're happy with 32-bit Python on Snow Leopard and have no need to build from source, just do as Chris recommended earlier: Use Python.org's installer. It is built on an earlier OS than SL and links against Apple's Tcl/T

Re: [Pythonmac-SIG] buildbots for OS X: G4 eMacs useful?

2010-04-24 Thread Chris Barker
Bill Janssen wrote: I've got 3 eMacs just sitting around, and thought I'd deploy them as OS X Python buildbots, if they'd be useful. They're 1 GHz G4 machines, with 640 MB of memory, running Tiger If there is a need -- it would be great to keep one on Tiger -- it's a pain to build on leopard

Re: [Pythonmac-SIG] Module Import Problem

2010-04-25 Thread Chris Barker
Mike wrote: File "build/bdist.macosx-10.6-universal/egg/pyttsx/__init__.py", line 39, in init this looks like you are running code out of the build dir, which may not have anything to do with your problem, but it's odd. How are you running this, setting your paths, etc? -Chris File "bui

Re: [Pythonmac-SIG] Module Import Problem

2010-04-25 Thread Chris Barker
Mike wrote: I don't think I'm doing anything special really. Just running it with python zgp.py. It may be something the pyttsx package is doing... how did you install pyttsx ? -Chris - Original Message ----- From: "Chris Barker" To: Sent: Sunday, April 25, 2010

Re: [Pythonmac-SIG] Module Import Problem

2010-04-26 Thread Chris Barker
but it is free. Even if I did I think I'd need to bee running Snow Leopard and I'm running 10.5.5. Any ideas? You need the latest version that runs on 10.5 -- it's there if you dig a bit. -Chris - Original Message - From: "Chris Barker" To: "Mike&q

Re: [Pythonmac-SIG] Python 2.7b2

2010-05-11 Thread Chris Barker
Ronald Oussoren wrote: As you might know the second beta of python 2.7 was released last weekend. This is the first beta with macosx installers, they can be downloaded from great!, thanks Ronald. There are two installers: one for OSX 10.3 or l

Re: [Pythonmac-SIG] Loading Python on my Mac

2011-01-12 Thread Chris Barker
On 1/12/2011 7:06 PM, s...@pobox.com wrote: The resulting binary is in /usr/local/bin/python (non-framework version) /usr/local/bin/pythonw (framework version) I'm sure others more knowledgeable about Python-on-a-Mac will correct any mistakes I've made. That all looks right. Note a

Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app

2011-06-07 Thread Chris Barker
On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) ImportErro

Re: [Pythonmac-SIG] Py2app zlib import error

2011-06-23 Thread Chris Barker
On 6/22/11 7:30 PM, Brian Zambrano wrote: Just bumping this. Does anyone have solution or some advice on how to proceed? The error is: 'import site' failed; use -v for traceback ... zipimport.ZipImportError: can't decompress data; zlib not available This looks like it has not

Re: [Pythonmac-SIG] py2app wx.lib.pubsub.Publisher problem

2011-09-17 Thread Chris Barker
On 9/16/11 8:37 PM, Hyeonseung I wrote: I`m trying to make an app bundle via py2app from a project using wxPython and it`s pub feature. But there is a problem whenever running the app. In my code, Publisher is imported as: from wx.lib.pubsub import Publisher as pub ... But when I run the ap

Re: [Pythonmac-SIG] windll on Mac?

2011-10-01 Thread Chris Barker
On 10/1/11 7:28 AM, Alex Hall wrote: I just joined this list, so I am sorry if this is not the right place to ask. I have written an application in python, and one library I use relies on the ctypes.windll functions, specifically user32 and kernel32. I would like to use this library, but I also w

Re: [Pythonmac-SIG] windll on Mac?

2011-10-02 Thread Chris Barker
above methods You may get help on this from the wx list, but on this list, you'll probably need to figure out what these functions actually do, and how the results are used, to know how you would accomplish the same thing on a Mac. -Chris On 10/1/11, Chris Barker wrote: On 10/1/11

Re: [Pythonmac-SIG] [py2app] packaging an egg using pkg_resources

2011-10-20 Thread Chris Barker
On 10/20/2011 2:35 AM, Ronald Oussoren wrote: * py2app is not designed to use eggs That's corrrect. Py2app currently does not copy egg metadata into the application bundle. * pkg_resources requires a distribution format like eggs to have the required metadata to introspect a package.

[Pythonmac-SIG] distutils and stdarg.h

2012-02-08 Thread Chris Barker
HI folks, I'm trying to build the Enthought Tool Suite "Enable" package (http://code.enthought.com/projects/index.php) against the python.org 32 bit Intel/PPC build of python 2.7 I'm getting a bunch of errors like: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No

[Pythonmac-SIG] distutils and stdard C++ headers..

2012-02-08 Thread Chris Barker
ome standard stuff. any ideas?? -Chris On Wed, Feb 8, 2012 at 12:14 PM, Chris Barker wrote: > HI folks, > > I'm trying to build the Enthought Tool Suite "Enable" package > > (http://code.enthought.com/projects/index.php) > >  against the python.org 32 bit Int

[Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
darn, forgot to send to the list again -- I hate these defaults! -- Forwarded message -- From: Chris Barker Date: Thu, Feb 9, 2012 at 9:58 AM Subject: Re: [Pythonmac-SIG] distutils and stdarg.h To: Ronald Oussoren On Wed, Feb 8, 2012 at 11:33 PM, Ronald Oussoren wrote

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
On Thu, Feb 9, 2012 at 11:37 AM, Russell E. Owen wrote: > I suggest you try one of these things: > - Use gcc 4.0.1 to build extensions for 32-bit python.org python. That's > what I'm still doing. It requires XCode 3.x. Thanks -- I"ll try that. but: 1) I thought distutils took care of calling th

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
On Thu, Feb 9, 2012 at 12:55 PM, Ned Deily wrote: >> 1) I thought distutils took care of calling the "right" compliler to >> match what pyotn had been built with. I guess not. > > Distutils *does* try to call the right CC compiler (that is, the > compiler the Python itself was built with), unless

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-10 Thread Chris Barker
On Thu, Feb 9, 2012 at 1:30 PM, Chris Barker wrote: >>  If it is using C++ >> code, though, you may have to override that yourself since Python itself >> does not contain any C++ code and I don't think there is any special >> code in Distutils to override C++ stu

[Pythonmac-SIG] PyCon..

2012-02-13 Thread Chris Barker
Hi folks, PyCon is in Santa Clara CA, USA in March this year. At least Ned and I will be there -- do we have enough Mac folks to do a MacPython sprint? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R            (206) 526-6959   voice 7600 Sand Poi

Re: [Pythonmac-SIG] (re)newbie py2app question

2012-03-06 Thread Chris Barker
On Sun, Mar 4, 2012 at 7:28 PM, Charles Hartman wrote: >  My wxPython ("classic," they call it, > for no clear reason; IN case you're curios -- "classic" refers to it being the latest version of the SWIG-based wrappers that have been around for years -- Robin is now working on an updated wxPython

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-08 Thread Chris Barker
> The only editra I could find was which is an editor, I > don't know why that gets copied into your application. How did you install > Editra, did you use the binary DMG on the website, or did you install from > source? Editra is shipped with wxPython -- so it may have snu

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-10 Thread Chris Barker
On Fri, Mar 9, 2012 at 7:22 AM, Ronald Oussoren > Py2app will never be able to do everything, but I'd prefer to get closer than > we're currently. A laudable goal, for sure -- and we much appreciate your work on py2app. > Are there things you have to do every time that could > (easily) be expres

Re: [Pythonmac-SIG] PyCon..

2012-03-10 Thread Chris Barker
On Tue, Feb 14, 2012 at 7:23 AM, Ned Deily wrote: > I'm planning to sprint through Thursday.   I've added a > Mac OS X Support > project to the PyCon sprint page.  Feel free to add topics and add > yourself.  Hope to see you all there! I"ve seen neither you nor Ronald yet... I'm here(there) Mon

Re: [Pythonmac-SIG] PyCon..

2012-03-11 Thread Chris Barker
icle <20120311020302.ga31...@illinois.edu>, >> Nicholas Riley wrote: >>> On Sat, Mar 10, 2012 at 04:56:26PM -0800, Ronald Oussoren wrote: >>>> On 10 Mar, 2012, at 15:05, Chris Barker wrote: >>>>> On Tue, Feb 14, 2012 at 7:23 AM, Ned Deily wrote: >>>>

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-14 Thread Chris Barker
Nothing to do with your issue (I don't think) but: On Tue, Mar 13, 2012 at 5:17 PM, Carlos Grohmann > *** using recipe: virtualenv *** > *** using recipe: sip *** > *** using recipe: matplotlib *** > *** using recipe: numpy *** > *** using recipe: wx *** recipe sip is usually used for PyQT (as s

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-14 Thread Chris Barker
ng a look. -Chris > Carlos > > On Wed, Mar 14, 2012 at 17:46, Chris Barker wrote: >> >> Nothing to do with your issue (I don't think) but: >> >> >> On Tue, Mar 13, 2012 at 5:17 PM, Carlos Grohmann > *** using recipe: >> virtualenv *** >> >

Re: [Pythonmac-SIG] New unofficial binary installers

2012-04-20 Thread Chris Barker
Russell, Thanks for doing these (and the others you've done) It seems to me that there is still a need for an "official" location for such binaries. Bob Ippolito used to have such a site back in the day, and while it's less necessary now (more package developers provide their own binaries), there

[Pythonmac-SIG] py2app and nested packages

2012-04-23 Thread Chris Barker
Folks, py2app doesn't seem to do "the right thing" with nested packages. However, it's not entirely clear what it should do... example: the "pubsub" package is delivered with wxPython, so it is commonly imported thusly: from wx.lib.pubsub import Publisher However, in wx.lib.pubsub, there is som

Re: [Pythonmac-SIG] py2app and nested packages

2012-04-23 Thread Chris Barker
ecipe includes it, excludes doesn't remove it. -Chris On Mon, Apr 23, 2012 at 11:42 AM, Chris Barker wrote: > Folks, > > py2app doesn't seem to do "the right thing" with nested packages. > However, it's not entirely clear what it should do... > >

Re: [Pythonmac-SIG] py2app and nested packages

2012-04-24 Thread Chris Barker
On Tue, Apr 24, 2012 at 4:29 AM, Ronald Oussoren >> example: the "pubsub" package is delivered with wxPython, so it is >> commonly imported thusly: >> >> from wx.lib.pubsub import Publisher > > wx.lib.pubsub is a bad example, it manipulates __path__ which causes problems > with py2app because it

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
On Mon, Apr 30, 2012 at 4:26 AM, Charlie Clark > I'm trying to update the setup script for the LinkChecker project > http://linkchecker.sourceforge.net/ because it no longer builds the app and > does not work reliably in a virtualenv. darn... > I am hoping to build a standalone > app and package

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
On Mon, Apr 30, 2012 at 10:20 AM, Charlie Clark >>> tried to break out the py2app part into a separate script. I'd go farther with this... >> I don't know that py2app reslies on setuptools for anything. > > Maybe it doesn't but I got an error when I moved the relevant part of > setup.py over to

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
(dont' forget to include pythonmac-sig -- it's not doen with a standard reply.) On Mon, Apr 30, 2012 at 2:07 PM, Charlie Clark wrote: >> That's a setuptools (or distribute) feature, and should be in the >> primary setup.py that the main developer uses on other platforms. > > Well, where should i

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-05-26 Thread Chris Barker
On Fri, May 25, 2012 at 5:34 PM, Michael O'Donnell wrote: > He found that if you set argv_emulation to False, the program > worked as expected. > > NOW, I need argv_emulation, since a user might open my application by > double clicking on a document associated with my program.  I don't want to > l

Re: [Pythonmac-SIG] Problem Running App built with Py2App

2012-07-10 Thread Chris Barker
running the app results in the same error. yup -- weird, if Console.app doesn't give you any more hints, you'll need to start from a small minimal app and work your way up... -Chris > > Mike > > > On 7/9/2012 10:40 AM, Chris Barker wrote: >> >> On Sat, Jul 7,

Re: [Pythonmac-SIG] Question about py2app packages and includes options

2012-07-17 Thread Chris Barker
On Tue, Jul 17, 2012 at 11:03 AM, Michael McCracken > My question is: why does 'packages' copy the package recursively, but > not into the .zip, because there are packages that don't work right if zipped -- so this gets around that. > while 'includes' only gets single modules? I suspect it's be

Re: [Pythonmac-SIG] Py2app error

2012-07-17 Thread Chris Barker
On Mon, Jul 16, 2012 at 10:49 PM, Ronald Oussoren wrote > I guess I'll have to download EPD to test this, but it looks like EPD has a > Python.framework where the framework version is different from the Python > version, and parts of py2app assume they are the same (which it why copying > pyco

Re: [Pythonmac-SIG] Question about py2app packages and includes options

2012-07-18 Thread Chris Barker
On Tue, Jul 17, 2012 at 3:49 PM, Michael McCracken wrote: > That makes sense - but as you mention, it seems like there's some > missing functionality. I think so, yes, but it can get the job done. > However, it's no fun if you have a lot of subpackages to add that way. nope -- but for the most

Re: [Pythonmac-SIG] py2app: works for me on 10.6, not 10.7

2012-07-31 Thread Chris Barker
On Tue, Jul 31, 2012 at 7:47 AM, Michael McCracken wrote: > Hi, my py2app setup script is working fine if I run it on 10.6, but on > 10.7 I've run into some problems. > > I want a standalone app, and on 10.6 I didn't specify semi_standalone: > False in the options, and it worked fine. > On 10.7, i

Re: [Pythonmac-SIG] Py2app error

2012-08-02 Thread Chris Barker
On Wed, Aug 1, 2012 at 10:39 PM, Mark Livingstone wrote: > OK, taking Chris' advice, I installed on a Snow Leopard machine: now that you've named, me, I feel compelled to contiue to help.. ;-) > cheyenne:dist marklivingstone$ ls ~/Downloads/ > About Downloads.lpdf > numpy-1.6.2-py2.7-python.org

Re: [Pythonmac-SIG] Py2app error

2012-08-03 Thread Chris Barker
On Thu, Aug 2, 2012 at 8:32 PM, Ned Deily wrote: >> These are what they seem to be -- though I think you got tripped up by >> "for Mac OS X 10.3 through 10.6" -- actually, that should be "10.3 + >> " -- 10.7 didn't exist when that was built. > > Actually, "10.3 through 10.6" is intentional. If

Re: [Pythonmac-SIG] py2app unable to find cprocessors.so

2012-09-13 Thread Chris Barker
On Thu, Sep 13, 2012 at 1:53 AM, Ronald Oussoren wrote: > Yea exactly, I have some smaller apps which are used for specific separate > jobs (one has a simple gui and generates and gathers log files from the main > app and zips them up should the main app ever fail to open for instance), > the job

Re: [Pythonmac-SIG] py2app unable to find cprocessors.so

2012-09-13 Thread Chris Barker
On Thu, Sep 13, 2012 at 10:36 AM, Michael McCracken wrote: > FWIW, here's how I do something similar now, to avoid having many > copies of the Qt libraries. cool! Thanks for the description > There is one master app, and several sub-apps. > > * call setup() for each of the apps, generating full

[Pythonmac-SIG] permission of doc dir

2012-10-15 Thread Chris Barker
Hi folks, I just tried to "pip install ipython" and got: error: could not create '/Library/Frameworks/Python.framework/Versions/2.7/share/doc/ipython': Permission denied indeed: $ ls -l /Library/Frameworks/Python.framework/Versions/2.7/share/ total 0 drwxr-xr-x 3 root admin 102 Oct 11 09:14

Re: [Pythonmac-SIG] permission of doc dir

2012-10-16 Thread Chris Barker
On Tue, Oct 16, 2012 at 3:16 PM, Ned Deily wrote: >> which bug tracker? The main python.org one? > > Yes, please. will do. > I've done an extensive update for the recently released 3.3 version. I > intend to backport some of the README and some of the Xcode 4 support, at > least, to 2.7 befo

[Pythonmac-SIG] Building a 32 bit framework build in a 64 bit system

2012-10-16 Thread Chris Barker
Hi Folks, I'm finding it a pain to force the Universal Python to 32 bit -- for building extensions, as well as running, etc. So I though maybe it would be nice to have a just plain 32 bit Intel build -- then I can use that to run and test all mystuff (I'm depending on 32 bit only C++ code extensio

Re: [Pythonmac-SIG] permission of doc dir

2012-10-16 Thread Chris Barker
On Mon, Oct 15, 2012 at 5:13 PM, Ned Deily wrote: > Please open an issue on the bug tracker so we don't forget. Thanks! Done: http://bugs.python.org/issue16256 -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 76

Re: [Pythonmac-SIG] Building a 32 bit framework build in a 64 bit system

2012-10-17 Thread Chris Barker
Ned, Thanks for the detailed reply -- not sure when I'll be able to really try this, but I'll let this list know how it goes when I do. -CHB On Tue, Oct 16, 2012 at 10:48 PM, Ned Deily wrote: > In article > , > Chris Barker wrote: >> I'm finding it a pain to fo

Re: [Pythonmac-SIG] avoiding system's "easy-install.pth" with custom distribution

2013-09-11 Thread Chris Barker
On Tue, Sep 10, 2013 at 11:16 PM, Ned Deily wrote: > The behavior is the result of a feature added in 2.7 for Issue4865 which > appends the site-packages directory for the Apple-supplied system Python > to sys.path of a Python framework build. With hindsight, I don't think > this was a good idea

[Pythonmac-SIG] Errors building Cython extensions on 10.9...

2014-02-10 Thread Chris Barker
Hi all, Have people in general been able to get extensions to build right under 10.9? I"ve got a bunch of C++ code (and Cython-generated C++ wrappers), that hav been building fine on OS-X up to 10.8, and Windows, and LInux, but now I've got a user trying to build under 10.9, and they get a bunch

Re: [Pythonmac-SIG] Errors building Cython extensions on 10.9...

2014-02-11 Thread Chris Barker
On Mon, Feb 10, 2014 at 5:28 PM, Ned Deily wrote: > > I've seen a lot of discussions on the MacPorts groups about the problems > caused by the 10.9 change in the default C++ library. It seems you can > change it at compile time but you need to be careful that other C++ libs > are also built the

[Pythonmac-SIG] linking extensions for older builds with newer pythons...

2014-03-06 Thread Chris Barker
The numpy folks are trying hard to get binary wheel sup on PyPi yeah! But this brought hup an issue -- PyPI policy is that binary wheels should be built for the python.org binaries -- which is great. The Python.org binaries are built for >=10.6, 32+64 bit Intel, and have the platfrom name: 10_6_

[Pythonmac-SIG] Building compatible dependencies

2014-06-11 Thread Chris Barker
Hi folks, I know it'a at least theoretically possible to build libs under 10.9 that will work on 10.6 -- specifically compatible with the python.org python binaries. But I"m having trouble finding documentation of what flags you need. MACOSX_DEPLOYMENT_TARGET=10.6 should be required -- but anyt

Re: [Pythonmac-SIG] MacPython and automating wheel builds

2014-08-04 Thread Chris Barker
Matthew, I would like some feedback on an idea I had for providing a > wheel-building service via the MacPython organization. > Do you mean the gitHub MacPython organization? If so, then yes, this is exactly the kind of thing I had in mind when I started that. Following up an idea and code by Ma

<    1   2   3   >