Tag Archive: python

Oct
29
2007

Compile Python 2.4.4 on Mac OS X 10.5 (Leopard)

Recently i upgraded my OS to Leopard and had to recompile python 2.4.4 for my Zope 3 buildout setup (i need a clean python for that). The problem was, that python 2.4.4 won’t build on leopard, Jodok Batlogg from Lovely Systems had the same problem and instantly found the solution. As he hasn’t posted it …

Continue reading »

Mar
27
2007

os x survival kit (darwin ports packages)

as i had to reinstall my mac book pro after my harddisk has died recently, i post my list of essential packages i need for my developments in Mac OS X.

Continue reading »

Aug
14
2006

Installing readline for python on Mac OS X Tiger

If you like to use your arrow keys in an interactive Python on OS X, you definately need readline…. If you download the patch files yourself from ftp://ftp.cwru.edu/pub/bash/readline-5.1-patches (readline51-00[1-4]) and put them in /opt/local/var/db/dports/distfiles/readline, then port install readline will work.

Continue reading »

Aug
11
2006

Yahoo officially supports python

Yahoo now has its own python section in its developer center featuring howto’s and links. you can see it in the Python Developer Center there’s also a link to a mailinglist dealing with python access to yahoo webservices Yahoos Seiten für Software-Entwickler sind um eine Rubrik reicher geworden: Das Python Developer Center lockt Anhänger der …

Continue reading »

Apr
04
2006

get kaa.metadata (mmpython) running on OS X

go into kaa/base and edit setup.py by changing (line 36) this extensions.append( Extension(‘shmmodule’, ['src/extensions/shmmodule.c']) ) to this #extensions.append( Extension(‘shmmodule’, ['src/extensions/shmmodule.c']) ) or use this diff: 36c36 < extensions.append( Extension(‘shmmodule’, ['src/extensions/shmmodule.c']) ) — > #extensions.append( Extension(‘shmmodule’, ['src/extensions/shmmodule.c']) ) until now the support for cdrom drives only works on Linux, so i disabled it on OS X. now go to kaa/metadata and edit setup.py: change this ext_modules = [ cdrom, ifoparser ] to #ext_modules = [ cdrom, ifoparser ] ext_modules = [ ifoparser ] and change this ext_modules = [ cdrom ] to #ext_modules = [ cdrom ] ext_modules = [ ] or use this diff: 58c58,59 < ext_modules = [ cdrom, ifoparser ] — > #ext_modules = [ cdrom, ifoparser ] > ext_modules = [ ifoparser ] 61c62,63 < ext_modules = [ cdrom ] — > #ext_modules = [ cdrom ] > ext_modules = [ ] now go back to kaa/base and install the kaa.base package: $ sudo python setup.py install now go to kaa/metadata and install the kaa.metadata package: $ sudo python setup.py install you may use a different python instance, like /opt/python24/bin/python or something else if you don’t wanna install kaa into the default python on OS X.

Continue reading »

Apr
02
2006

kupu resize images

I always had the problem, that i could resize (drag with my mouse) images inside kupu, but when i save the document the image has its original size :-( Today i found the solution to this problem here To enable kupu to keep the resize information upon save you have to add width and height to the style whitelist in the kupu preferences in your site preferences.

Continue reading »