«

»

Apr
04
2006

get kaa.metadata (mmpython) running on OS X

Dependencies

get and install libxml2

download sources for libxml2 and libxslt from http://xmlsoft.org/downloads.html
build and install

1
2
3
./configure --with-python=/<pathtoyourpythonbinary>/python
make
sudo make install

Install kaa

first get kaa from svn:

1
svn co svn://svn.freevo.org/kaa/trunk kaa

i had to disable the building of the shared memory module on OS X because it wouldn’t build. As it seems kaa.metadata works without the shared memory module, but maybe someone knows how to get this built on OS X with the shm module.
go into kaa/base and edit setup.py by changing (line 36) this

?View Code PYTHON
1
extensions.append( Extension('shmmodule', ['src/extensions/shmmodule.c']) )

to this

?View Code PYTHON
1
#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

?View Code PYTHON
1
ext_modules = [ cdrom, ifoparser ]

to

?View Code PYTHON
1
2
#ext_modules = [ cdrom, ifoparser ]
ext_modules = [ ifoparser ]

and change this

?View Code PYTHON
1
ext_modules = [ cdrom ]

to

?View Code PYTHON
1
2
#ext_modules = [ cdrom ]
ext_modules = [ ]

now go back to kaa/base and install the kaa.base package:

1
sudo python setup.py install

now go to kaa/metadata and install the kaa.metadata package:

1
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.

2 comments

  1. Jummo says:

    Thanks.
    You have a typo in the file kaa/metadata/setup.py

    ext_modules = [ cdrom ]

    to

    #ext_modules = [ cdrom ]
    ext_modules = []

    and not to

    #ext_modules = [ cdrom ] ext_modules = []

  2. Wolfgang says:

    @Jummo
    thanks jummo, i updated the page to fix the typo.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>