Compile Python 2.4 on Mac OS X 10.6 Snow Leopard
Old stuff on newish stuff - "reminder to self" post
For older Zope versions it is still necessary to use Python 2.4 versions. To compile Python 2.4 on Mac OS X Snow Leopard, I had to jump through a few little hoops:
First I downloaded and unpacked the python tarball, then I applied the following patches:
readline-libedit-2.patch found on the python issue report 6877 - one hunk of this patch does not apply (the one for Doc/library/readline.rst, just let it skip that hunk, who needs documentation anyway?) This patch makes python use the system readline, which is finally in shape to be used with python.
python-2.4-darwin-10.6.patch found on plohn's svn repo - I don't remember how I found this patch, it applies cleanly though. This fixes a lot of things that stem from this python being much older than the 10.6 system.
now configure python with:
./configure MACOSX_DEPLOYMENT_TARGET=10.6
now go on to make and make install python2.4 as usual
After this little process the python2.4 binary works just fine.
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains.
And with an interest in digital life and the feeling of change in a big city.
Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.
Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
I personally use http://svn.plone.org/svn/collective/buildout/python
This is a buildout to build python 2.4 to 2.6 from scratch on SnowLeopard.
Or you could install macports (http://www.macports.org) and do:
$ port install python24
or even:
$ port install zope
(and let macports take care of the deps)
uaaargh! macports :-(
I really, really don't like macports. I prefer to have to trawl the intarwebs for some time to find the solution to a problem instead of messing with that mess.
har har... I don't think it is a mess (in fact, everything is installed under /opt/ in a somehow "isolated" environment. I've been using them for quite some time now and I'm happy with it. But, you know, as we say in spain "para gustos se pintan colores" (that is, we all have different oppinions and there is a match for each one) ;D
If you want a more isolated environment, you can give a try to minitage (http://www.minitage.org).
kiorky, minitage is very likely nothing to my taste. I'd even have a look at it, but I think your license does not really work for my work environment.
Interesting, never heard about that minitage thing before. I think the problem for betabug is the gplv2 license... ;D
Anyway, I'll take a deeper look at the project, thnx kiorky!
I licensed minitage under BSD (3forms) to allow users to use it in a permissive and non autoritative way.
It s compatible with GPLv2. It's the BSD(4forms) which is incompatible.
In other words, just do what you want with it ;)
http://en.wikipedia.org/wiki/BSD_license#3-clause_license_.28.22New_BSD_License.22.29
Here is anoter shortcut for happiness, no macports needed:
https://svn.plone.org/svn/collective/buildout/python/src/docs/README.txt
You can trackback to: http://betabug.ch/blogs/ch-athens/1019/tbping
There are no trackbacks.