#!/bin/sh

. config/options $1

PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*`

mkdir -p $PYTHON_LIB_DIR/site-packages
  cp -P $PKG_BUILD/_dbus_bindings/.libs/*.so $PYTHON_LIB_DIR/site-packages
  cp -P $PKG_BUILD/_dbus_glib_bindings/.libs/*.so $PYTHON_LIB_DIR/site-packages
  cp $PKG_BUILD/*.pyc  $PYTHON_LIB_DIR/site-packages

mkdir -p $PYTHON_LIB_DIR/site-packages/dbus
  cp $PKG_BUILD/dbus/*.pyc $PYTHON_LIB_DIR/site-packages/dbus

mkdir -p $PYTHON_LIB_DIR/site-packages/dbus/mainloop
  cp $PKG_BUILD/dbus/mainloop/*.pyc $PYTHON_LIB_DIR/site-packages/dbus/mainloop
