[Distutils] Including third party libs with buildout

Phil pbeadling at mail2web.com
Fri Nov 14 01:53:27 CET 2008


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.g
z
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=78915c05e904cbaba9360a3c8fa0
f945a785cbb6;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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20081114/2b96b042/attachment.htm>


More information about the Distutils-SIG mailing list