Re: [Pyobjc-dev] Pyobjc-dev Digest, Vol 44, Issue 2
Brought to you by:
ronaldoussoren
From: Fabzter <fab...@gm...> - 2010-03-09 23:02:22
|
Thanks for your quick answers. (: On Tue, Mar 9, 2010 at 8:25 AM, <pyo...@li...> wrote: > Send Pyobjc-dev mailing list submissions to > pyo...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > or, via email, send a message with subject or body 'help' to > pyo...@li... > > You can reach the person managing the list at > pyo...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pyobjc-dev digest..." > > > Today's Topics: > > 1. Build hell resolved: 10.4/10.5/10.6 (Aahz) > 2. About linux Support. (Fabzter) > 3. Re: About linux Support. (Mani Ghasemlou) > 4. Re: About linux Support. (Ronald Oussoren) > 5. Re: About linux Support. (Ronald Oussoren) > 6. Re: About linux Support. (Virgil Dupras) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 4 Mar 2010 11:00:50 -0800 > From: Aahz <aa...@py...> > Subject: [Pyobjc-dev] Build hell resolved: 10.4/10.5/10.6 > To: pyt...@py..., pyo...@li... > Message-ID: <201...@pa...> > Content-Type: text/plain; charset=us-ascii > > [cross-posted to both pythonmac-sig and pyobjc-dev for max audience, > Reply-To set to pyobjc-dev for discussion] > > I finally figured out how to build my app: > > Turns out that in order to use PyObjC 2.2 you need py2app 0.4.3 -- but > PyObjC 1.4 needs py2app 0.3.6. (PyObjC 1.4 is for the main app running > on 10.4/10.5/10.6; PyObjC 2.2 is used for FSEvents on 10.5/10.6, > previously PyObjC 2.2b2 for 10.5 only, but 2.2b2 doesn't work on 10.6) > > I built PyObjC 2.2 on 10.5 from source. It's a right royal pain (partly > because PyPI has no mechanism for downloading *source* dependencies), and > I really hope that the next release of PyObjC makes it much easier to > build from source. (Or that binaries for 10.5 get included.) > > My clue that py2app was the issue was when I figured out that > > from Foundation import NSAutoreleasePool, NSMutableArray, NSString > > causing > > ValueError: Don't know CF type for typestr '^{__CFAllocator=}', cannot create special wrapper > > only and always occurred in a build, not from plain Python, even on 10.6, > meaning that PyObjC wasn't the problem. > > Incidentally, using py2app 0.4.3 with PyObjC 1.4 resulted in some error > about corrupted NIB file that I didn't record exactly. > > Before someone asks how I can use both PyObjC 1.4 and PyObjC 2.2, I'm > playing games with ~/Library/Python/2.6 being a symlink that gets swapped > during the build process. (Obviously, I end up with two different apps > built.) > -- > Aahz (aa...@py...) <*> http://www.pythoncraft.com/ > > "Many customs in this life persist because they ease friction and promote > productivity as a result of universal agreement, and whether they are > precisely the optimal choices is much less important." --Henry Spencer > > > > ------------------------------ > > Message: 2 > Date: Sun, 7 Mar 2010 21:39:26 -0600 > From: Fabzter <fab...@gm...> > Subject: [Pyobjc-dev] About linux Support. > To: pyo...@li... > Message-ID: > <cc9...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Today I found about pyobjc, and I'm pretty interested on it just > because i like learning about different programming languages. > Now, I want to learn objective c and to do it I'll write a very simple > 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is > mac focused, but maybe you have some kind of support to linux? > > Or maybe you can tell me where is the subset of the code (maybe the > core?) that let objective-c and python interact with each other. I'm > only interested in that part, nothing about the cocoa and mac-only > stuff. Please don't think I am too lazy; I'm rather TOO stupid, and > I'll get quickly lost if I dive into pyobjc source. So any help, or > pointers are really apreciated. > > Thank you. > > > > ------------------------------ > > Message: 3 > Date: Sun, 7 Mar 2010 23:20:20 -0500 > From: Mani Ghasemlou <ma...@tu...> > Subject: Re: [Pyobjc-dev] About linux Support. > To: pyo...@li... > Message-ID: > <d2a...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Fabzter, > > On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >> Today I found about pyobjc, and I'm pretty interested on it just >> because i like learning about different programming languages. > > Curiosity is as good a reason as any! > >> Now, I want to learn objective c and to do it I'll write a very simple >> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >> mac focused, but maybe you have some kind of support to linux? >> > > I believe at one point PyObjC supported GNUStep > (http://www.gnustep.org), but it does not anymore. In other words, > PyObjC will unfortunately not be very useful to a Linux user. The > value proposition for PyObjC, for better or worse, is entirely to the > benefit of MacOS X developers who wish to interact with Cocoa using > Python. > > I think for making a 2d game using Python, you'll have a lot of great > (read: better) options: > http://wiki.python.org/moin/PythonGameLibraries > >> Or maybe you can tell me where is the subset of the code (maybe the >> core?) that let objective-c and python ?interact with each other. I'm > > This is a huge departure from making a simple 2d game. :) Can't help > with this one, sorry ... > > Best of luck, > Mani > > > > ------------------------------ > > Message: 4 > Date: Tue, 09 Mar 2010 14:49:01 +0100 > From: Ronald Oussoren <ron...@ma...> > Subject: Re: [Pyobjc-dev] About linux Support. > To: Fabzter <fab...@gm...> > Cc: pyo...@li... > Message-ID: <E74...@ma...> > Content-Type: text/plain; charset="us-ascii" > > > On 8 Mar, 2010, at 4:39, Fabzter wrote: > >> Today I found about pyobjc, and I'm pretty interested on it just >> because i like learning about different programming languages. >> Now, I want to learn objective c and to do it I'll write a very simple >> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >> mac focused, but maybe you have some kind of support to linux? >> >> Or maybe you can tell me where is the subset of the code (maybe the >> core?) that let objective-c and python interact with each other. I'm >> only interested in that part, nothing about the cocoa and mac-only >> stuff. Please don't think I am too lazy; I'm rather TOO stupid, and >> I'll get quickly lost if I dive into pyobjc source. So any help, or >> pointers are really apreciated. > > PyObjC does not support linux, and probably never will. The core part of PyObjC is a bridge that translates Python method calls into Objective-C calls (and the other way around). This bridge uses the Objective-C runtime and the API for that is not standardized in any way, the GNU runtime (used by GNUstep on Linux) has a different API than the one on OSX. > > Adding support for GNUstep on Linux is possible, but I'm not interested in doing the work. > > Ronald >> >> Thank you. >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: smime.p7s > Type: application/pkcs7-signature > Size: 3567 bytes > Desc: not available > > ------------------------------ > > Message: 5 > Date: Tue, 09 Mar 2010 14:53:47 +0100 > From: Ronald Oussoren <ron...@ma...> > Subject: Re: [Pyobjc-dev] About linux Support. > To: Mani Ghasemlou <ma...@tu...> > Cc: pyo...@li... > Message-ID: <C7B...@ma...> > Content-Type: text/plain; charset="us-ascii" > > > On 8 Mar, 2010, at 5:20, Mani Ghasemlou wrote: > >> Hi Fabzter, >> >> On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >>> Today I found about pyobjc, and I'm pretty interested on it just >>> because i like learning about different programming languages. >> >> Curiosity is as good a reason as any! >> >>> Now, I want to learn objective c and to do it I'll write a very simple >>> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >>> mac focused, but maybe you have some kind of support to linux? >>> >> >> I believe at one point PyObjC supported GNUStep >> (http://www.gnustep.org), but it does not anymore. In other words, >> PyObjC will unfortunately not be very useful to a Linux user. The >> value proposition for PyObjC, for better or worse, is entirely to the >> benefit of MacOS X developers who wish to interact with Cocoa using >> Python. > > PyObjC had very limited support for GNUstep, but that never worked properly and because nobody was interested in finishing the port I ripped that support out. > > If someone really wants gnustep support and is willing to support that I'm willing to merge a patch to that effect. However, that person will have to do all the work, I'm will not merge partial patches or even run tests on Linux (which means a linux maintainer will have to fix the linux port from time to time because development on OSX broke linux support). > > Ronald > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: smime.p7s > Type: application/pkcs7-signature > Size: 3567 bytes > Desc: not available > > ------------------------------ > > Message: 6 > Date: Tue, 9 Mar 2010 15:00:58 +0100 > From: Virgil Dupras <hs...@ha...> > Subject: Re: [Pyobjc-dev] About linux Support. > To: Ronald Oussoren <ron...@ma...> > Cc: pyo...@li... > Message-ID: > <2a7...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > In other words, it's probably easier to for PyObjC and convert it into > a GNUStep bridge :) > -- > Virgil Dupras > > > On Tue, Mar 9, 2010 at 2:53 PM, Ronald Oussoren <ron...@ma...> wrote: >> >> On 8 Mar, 2010, at 5:20, Mani Ghasemlou wrote: >> >>> Hi Fabzter, >>> >>> On Sun, Mar 7, 2010 at 10:39 PM, Fabzter <fab...@gm...> wrote: >>>> Today I found about pyobjc, and I'm pretty interested on it just >>>> because i like learning about different programming languages. >>> >>> Curiosity is as good a reason as any! >>> >>>> Now, I want to learn objective c and to do it I'll write a very simple >>>> 2d game with it. The problem is I'm a linux user. I _know_ pyobjc is >>>> mac focused, but maybe you have some kind of support to linux? >>>> >>> >>> I believe at one point PyObjC supported GNUStep >>> (http://www.gnustep.org), but it does not anymore. In other words, >>> PyObjC will unfortunately not be very useful to a Linux user. The >>> value proposition for PyObjC, for better or worse, is entirely to the >>> benefit of MacOS X developers who wish to interact with Cocoa using >>> Python. >> >> PyObjC had very limited support for GNUstep, but that never worked properly and because nobody was interested in finishing the port I ripped that support out. >> >> If someone really wants gnustep support and is willing to support that I'm willing to merge a patch to that effect. However, that person will have to do all the work, I'm will not merge partial patches or even run tests on Linux (which means a linux maintainer will have to fix the linux port from time to time because development on OSX broke linux support). >> >> Ronald >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> > > > > ------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > ------------------------------ > > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > > End of Pyobjc-dev Digest, Vol 44, Issue 2 > ***************************************** > |