<HTML>
<HEAD>
<TITLE>Including third party libs with buildout</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
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!<BR>
<BR>
Any help greatly appreciated,<BR>
<BR>
Phil.<BR>
<BR>
setup.py<BR>
<BR>
<BR>
from setuptools import setup, find_packages<BR>
setup( name='mySop', <BR>
version='0.1',<BR>
packages=find_packages('.'),<BR>
include_package_data=True,<BR>
package_data={ 'SopGui':['data/mySop.glade.xml'] },<BR>
entry_points={ 'console_scripts' : ['mySop = MySop.main:entry_point'] },<BR>
) <BR>
<BR>
<BR>
**********************<BR>
buildout.cfg<BR>
<BR>
<BR>
[buildout]<BR>
parts = sp-sc pygtk vlc_bindings glade_xml mySop<BR>
develop = .<BR>
<BR>
[sp-sc]<BR>
recipe = hexagoniat.recipe.download<BR>
url = <a href="http://download.sopcast.cn/download/sp-auth.tgz">http://download.sopcast.cn/download/sp-auth.tgz</a><BR>
strip-top-level-dir = true<BR>
ignore-existing = true<BR>
destination = ${buildout:directory}/bin<BR>
<BR>
[pygtk]<BR>
recipe = tl.buildout_gtk<BR>
pycairo-url = <a href="http://www.cairographics.org/releases/pycairo-1.4.12.tar.gz">http://www.cairographics.org/releases/pycairo-1.4.12.tar.gz</a><BR>
pygobject-url = <a href="http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.15/pygobject-2.15.4.tar.gz">http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.15/pygobject-2.15.4.tar.gz</a><BR>
pygobject-md5sum = 0529aed070916e744a60ccddd5c0aaf8<BR>
pygtk-url = <a href="http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.13/pygtk-2.13.0.tar.gz">http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.13/pygtk-2.13.0.tar.gz</a><BR>
pygtk-md5sum = d5094d254288556256ee5f93b0c5ae9b<BR>
<BR>
[vlc_bindings]<BR>
recipe = zerokspot.recipe.distutils<BR>
urls = <a href="http://git.videolan.org/?p=vlc.git;a=snapshot;h=78915c05e904cbaba9360a3c8fa0f945a785cbb6;sf=tgz">http://git.videolan.org/?p=vlc.git;a=snapshot;h=78915c05e904cbaba9360a3c8fa0f945a785cbb6;sf=tgz</a><BR>
<BR>
[glade_xml]<BR>
recipe = iw.recipe.cmd<BR>
on_install=true<BR>
on_update=true<BR>
cmds = gtk-builder-convert MySop/data/mySop.glade MySop/data/mySop.glade.xml<BR>
<BR>
[mySop]<BR>
recipe = zc.recipe.egg<BR>
extra-paths = ${vlc_bindings:extra-path}<BR>
${pygtk:path}<BR>
scripts = mySop<BR>
<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>