Hi,

I’m having a bash at writing a buildout script for an app I’m working on.  My app uses some third part stuff like pygtk and vlc’s python bindings which buildout does a great job of setting up in my dev environment.  The problem I have is when I want to produce a final distribution  - for example, in the config below do I make sure that the libs created by the [pygtk] and [vlc_bindings] sections are packaged in my final deployment (using bdist the .so files should just be in the libs/ directory and using sdist, I guess the source should be bundled)?  Nothing I have tried seems to work (adding them to the eggs section of [mySop] or including them in setup.py as requirements).  I’m sure there must be an easy way to do this – but it has me stumped!

Any help greatly appreciated,

Phil.

setup.py


from setuptools import setup, find_packages
setup( name='mySop',
       version='0.1',
       packages=find_packages('.'),
       include_package_data=True,
       package_data={ 'SopGui':['data/mySop.glade.xml'] },
       entry_points={ 'console_scripts' : ['mySop = MySop.main:entry_point']  },
       )


**********************
buildout.cfg


[buildout]
parts = sp-sc pygtk vlc_bindings glade_xml mySop
develop = .

[sp-sc]
recipe = hexagoniat.recipe.download
url = http://download.sopcast.cn/download/sp-auth.tgz
strip-top-level-dir = true
ignore-existing = true
destination = ${buildout:directory}/bin

[pygtk]
recipe = tl.buildout_gtk
pycairo-url = http://www.cairographics.org/releases/pycairo-1.4.12.tar.gz
pygobject-url = http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.15/pygobject-2.15.4.tar.gz
pygobject-md5sum = 0529aed070916e744a60ccddd5c0aaf8
pygtk-url = http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.13/pygtk-2.13.0.tar.gz
pygtk-md5sum = d5094d254288556256ee5f93b0c5ae9b

[vlc_bindings]
recipe = zerokspot.recipe.distutils
urls = http://git.videolan.org/?p=vlc.git;a=snapshot;h=78915c05e904cbaba9360a3c8fa0f945a785cbb6;sf=tgz

[glade_xml]
recipe = iw.recipe.cmd
on_install=true
on_update=true
cmds = gtk-builder-convert MySop/data/mySop.glade MySop/data/mySop.glade.xml

[mySop]
recipe = zc.recipe.egg
extra-paths = ${vlc_bindings:extra-path}
              ${pygtk:path}
scripts = mySop