Thread: [Pyobjc-dev] PyObjC on the iPhone
Brought to you by:
ronaldoussoren
|
From: Jay F. \(saurik\) <sa...@sa...> - 2008-03-08 11:24:45
|
So, a few weeks ago I ported PyObjC to the iPhone, and I'm realizing that I should be doing a better job of telling people how to get it ;P. I don't know if anyone is even interested in this, but I have written a little article about it on my website (http://www.saurik.com/id/5). Most of it is for iPhone developers who want to get started with PyObjC, but it also explains how to get it and provides a link to some example iPhone application code. (The short version of getting it is to add http://apptapp.saurik.com/ as an Installer source, install Cydia Packger, and then install iPhone/Python from the Python category.) I had to bypass the build environment (as I didn't see how to make it do cross compilation in any easy way) and I made a bunch of modifications to the iPhone assembler to support libffi almost entirely out of the box (I also ported Java a few months ago, which needed this for a setup I built that's similar to PyObjC called JocStrap), but otherwise PyObjC pretty much worked. The changes and build scripts can be found at the Telesphoreo project: http://svn.telesphoreo.org/trunk/data/pyobjc/port.diff http://svn.telesphoreo.org/trunk/data/pyobjc/make.sh (Sorry about the massive single-file .diff, when I was working on that I was sufficiently in a rush as to not spend the time to break it into a couple patches for the couple things I changed.) Sincerely, Jay Freeman (saurik) sa...@sa... http://www.saurik.com/ |
|
From: Ron S. <rd...@ma...> - 2008-03-08 16:37:53
|
Hello, I'm new to the list, and I am interested in this, thnaks! Also, I wonder, is pyobjc going to be usable with the new iphone SDK? Ron On Saturday, March 08, 2008, at 03:25AM, "Jay Freeman (saurik)" <sa...@sa...> wrote: >So, a few weeks ago I ported PyObjC to the iPhone, and I'm realizing that I should be doing a better job of telling people how to get it ;P. I don't know if anyone is even interested in this, but I have written a little article about it on my website (http://www.saurik.com/id/5). Most of it is for iPhone developers who want to get started with PyObjC, but it also explains how to get it and provides a link to some example iPhone application code. > >(The short version of getting it is to add http://apptapp.saurik.com/ as an Installer source, install Cydia Packger, and then install iPhone/Python from the Python category.) > >I had to bypass the build environment (as I didn't see how to make it do cross compilation in any easy way) and I made a bunch of modifications to the iPhone assembler to support libffi almost entirely out of the box (I also ported Java a few months ago, which needed this for a setup I built that's similar to PyObjC called JocStrap), but otherwise PyObjC pretty much worked. The changes and build scripts can be found at the Telesphoreo project: > >http://svn.telesphoreo.org/trunk/data/pyobjc/port.diff >http://svn.telesphoreo.org/trunk/data/pyobjc/make.sh > >(Sorry about the massive single-file .diff, when I was working on that I was sufficiently in a rush as to not spend the time to break it into a couple patches for the couple things I changed.) > >Sincerely, >Jay Freeman (saurik) >sa...@sa... >http://www.saurik.com/ |
|
From: Ian B. <ib...@gm...> - 2008-03-08 16:40:30
|
Any thoughts of putting this on github? Might be an appropriate place for your branch. I gave bbum an invite a couple of weeks ago and I'm pretty sure I could scrounge one up for Ronald and you. - Ian On Mar 8, 2008, at 4:25 AM, Jay Freeman (saurik) wrote: > So, a few weeks ago I ported PyObjC to the iPhone, and I'm realizing > that I should be doing a better job of telling people how to get > it ;P. I don't know if anyone is even interested in this, but I have > written a little article about it on my website (http://www.saurik.com/id/5 > ). Most of it is for iPhone developers who want to get started with > PyObjC, but it also explains how to get it and provides a link to > some example iPhone application code. > > (The short version of getting it is to add http:// > apptapp.saurik.com/ as an Installer source, install Cydia Packger, > and then install iPhone/Python from the Python category.) > > I had to bypass the build environment (as I didn't see how to make > it do cross compilation in any easy way) and I made a bunch of > modifications to the iPhone assembler to support libffi almost > entirely out of the box (I also ported Java a few months ago, which > needed this for a setup I built that's similar to PyObjC called > JocStrap), but otherwise PyObjC pretty much worked. The changes and > build scripts can be found at the Telesphoreo project: > > http://svn.telesphoreo.org/trunk/data/pyobjc/port.diff > http://svn.telesphoreo.org/trunk/data/pyobjc/make.sh > > (Sorry about the massive single-file .diff, when I was working on > that I was sufficiently in a rush as to not spend the time to break > it into a couple patches for the couple things I changed.) > > Sincerely, > Jay Freeman (saurik) > sa...@sa... > http://www.saurik.com/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
|
From: Ronald O. <ron...@ma...> - 2008-03-08 17:13:06
Attachments:
smime.p7s
|
On 8 Mar, 2008, at 17:40, Ian Baird wrote: > Any thoughts of putting this on github? Might be an appropriate place > for your branch. I gave bbum an invite a couple of weeks ago and I'm > pretty sure I could scrounge one up for Ronald and you. I intend to merge this port into the pyobjc trunk. I've looked at Jay's patches and they seem to be clean enough to merge without too many changes. BTW. the patches for python at his site are slightly more involved, but it should be possible to get that port into the python repository as well (after further cleaning up, they cannot be merged as is). Ronald |
|
From: Ian B. <ib...@gm...> - 2008-03-08 17:15:22
|
Cool - I'm totally stoked about github, makes community branching and sharing really easy to do, although it might be more appropriate to have a python-based project in something like Mercurial. -Ian On Mar 8, 2008, at 10:12 AM, Ronald Oussoren wrote: > > On 8 Mar, 2008, at 17:40, Ian Baird wrote: > >> Any thoughts of putting this on github? Might be an appropriate place >> for your branch. I gave bbum an invite a couple of weeks ago and I'm >> pretty sure I could scrounge one up for Ronald and you. > > I intend to merge this port into the pyobjc trunk. I've looked at > Jay's patches and they seem to be clean enough to merge without too > many changes. > > BTW. the patches for python at his site are slightly more involved, > but it should be possible to get that port into the python > repository as well (after further cleaning up, they cannot be merged > as is). > > Ronald |
|
From: Jay F. \(saurik\) <sa...@sa...> - 2008-03-08 19:53:36
|
By the way, I'd be happy to help with any effort to getting my changes pushed upstream with regards to Python (such as in spending more time cleaning it up), although it would obviously be preferable, just to me, if someone who knew more about that build environment spent the time to work on it and I instead worked on say, porting RubyCocoa, which is also on my todo list ;P. Anyone know who I should talk to with regards to that? Would they be interested if I just made a post about it to the Python development mailing list? Sincerely, Jay Freeman (saurik) sa...@sa... http://www.saurik.com/ On 8 Mar, 2008, at 17:40, Ian Baird wrote: > Any thoughts of putting this on github? Might be an appropriate place > for your branch. I gave bbum an invite a couple of weeks ago and I'm > pretty sure I could scrounge one up for Ronald and you. I intend to merge this port into the pyobjc trunk. I've looked at Jay's patches and they seem to be clean enough to merge without too many changes. BTW. the patches for python at his site are slightly more involved, but it should be possible to get that port into the python repository as well (after further cleaning up, they cannot be merged as is). Ronald ----- Original Message ----- From: "Ronald Oussoren" <ron...@ma...> To: "Ian Baird" <ib...@gm...> Cc: "pyObjC Mailing list" <pyo...@li...> Sent: Saturday, March 08, 2008 9:12 AM Subject: Re: [Pyobjc-dev] PyObjC on the iPhone > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ---------------------------------------------------------------------------- ---- > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
|
From: Ronald O. <ron...@ma...> - 2008-03-08 17:20:42
Attachments:
smime.p7s
|
On 8 Mar, 2008, at 17:37, Ron Stephens wrote: > Hello, > > I'm new to the list, and I am interested in this, thnaks! > > Also, I wonder, is pyobjc going to be usable with the new iphone SDK? I see no reason why it shouldn't be. I haven't at the SDK yet beyond installing it and building/running one of the template projects in the iPhone emulator though. I have read on several blogs/websites about the SDK and there are two non-technical issues that might affect us: (1) it won't be possible to share a Python.framework between several applications, as you seem to be limited to installing self-contained applications and (2) appearantly you cannot distribute apps that allow the user to download and run other code. At first glance that would forbid us to create a mobile Python IDE using the SDK. As I wrote before, this is without properly looking at the SDK, Ronald |
|
From: Ian B. <ib...@gm...> - 2008-03-08 17:23:01
|
Not to throw cold water on any of this, but since it's a public list, just remember that the details of the SDK are under NDA. Not that I care really, but there are Apple folks on this list and their corporate masters might care. - Ian On Mar 8, 2008, at 10:20 AM, Ronald Oussoren wrote: > > On 8 Mar, 2008, at 17:37, Ron Stephens wrote: > >> Hello, >> >> I'm new to the list, and I am interested in this, thnaks! >> >> Also, I wonder, is pyobjc going to be usable with the new iphone SDK? > > I see no reason why it shouldn't be. I haven't at the SDK yet > beyond installing it and building/running one of the template > projects in the iPhone emulator though. I have read on several > blogs/websites about the SDK and there are two non-technical issues > that might affect us: (1) it won't be possible to share a > Python.framework between several applications, as you seem to be > limited to installing self-contained applications and (2) > appearantly you cannot distribute apps that allow the user to > download and run other code. At first glance that would forbid us to > create a mobile Python IDE using the SDK. > > As I wrote before, this is without properly looking at the SDK, > > Ronald > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
|
From: Jay F. \(saurik\) <sa...@sa...> - 2008-03-08 20:30:26
|
So, while I am quite focused on Telesphoreo (a project which Apple would never allow onto their phones: it's a complete distribution of Unixy utilities for the device), I _am_ intending on providing a stand-alone environment for the various development platforms I'm providing (Java, Python, etc.) that will work on the SDK and could be included, entirely self contained, in your .app folder. My main interests are on promoting development on the iPhone, which thereby now requires a slightly forked approach. So, yes, this will work with the SDK, and stay tuned ;P. (I have now been given the iphone-dev toolchain project, which I've been spending the last couple days working on: I now have a linker compatible with the cpu subtypes in Apple's new SDK linker, and am working on a new version of my JocStrap Java/Objective-C tool that can generate headers from Objective-C 2.0 binaries. I also got gcc 4.2 working: http://www.saurik.com/id/4. I believe a lot of cool stuff is going to be possibly soon.) --- legal issues, as someone brought them up. not very important to anyone who doesn't care. --- Oh, and on the front of Apple and NDAs: I have signed no NDAs with Apple and I only have access to the free SDK. On top of that, I don't even own a Mac, so I've just been ssh'ing into a friend's box and running just the new gcc without Xcode (and gcc by definition can't have anything in it that would still be applicable under any reasonable NDA, as all its secrets should already be provided by Apple as its under GPL). I am pretty sure that I can talk about this as long as I want and there won't be any problems. ;P (On which point: Apple should be providing the source code to their compiler. More to the point, Apple may not even remember that their copy of "as" in cctools is gas, which is licensed under GPL2 as well, so while I might actually have the source for Apple's compiler from the latest trunk at llvm-gcc, I know for a fact that I am missing their cctools, which is normally distributed from the Darwin Source Code site. So if anyone from Apple _is_ on this list, I hereby request the source code I have the right to see and build for myself, and am vaguely angry that I haven't found it in some obvious place yet.) Sincerely, Jay Freeman (saurik) sa...@sa... http://www.saurik.com/ ----- Original Message ----- From: "Ron Stephens" <rd...@ma...> To: "Jay Freeman (saurik)" <sa...@sa...> Cc: <pyo...@li...> Sent: Saturday, March 08, 2008 8:37 AM Subject: Re: [Pyobjc-dev] PyObjC on the iPhone > Hello, > > I'm new to the list, and I am interested in this, thnaks! > > Also, I wonder, is pyobjc going to be usable with the new iphone SDK? > > Ron |