# As per http://lists.debian.org/debian-release/2010/02/msg00325.html severity 582565 serious thanks
* Denis Barbier <bou...@gmail.com>, 2010-05-22, 12:50:
After applying the patch to fix the FTBFS with boost1.42, the package FTBFS in Ubuntu because of python 2.6. *** /tmp/tmpUOfWSo In Ubuntu, the following changes are required to make the package build with python 2.6: * debian/rules: deleted commands to copy the python package * python-vtk.install: install also the python part, deleted from debian/rules We thought you might be interested in doing the same.
On first glance, Fabrice's patch looks correct.
I tried your patch, but contents of python-vtk differ: * VTK-5.4.2.egg-info is installed into /usr/share/pyshared/vtk/ whereas it was shippad into /usr/share/pyshared/
The patch corrects a packaging bug in the current version: becuase of misplaced *.egg-info you couldn't import VTK with setuptools:
$ python -c "import pkg_resources; pkg_resources.require('VTK')" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 648, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: VTK
* With your patch, files are shipped both in /usr/lib/python2.5/site-packages/vtk and /usr/share/pyshared/vtk/
Hmm, are they? Could you post full output of "dpkg -c python-vtk*.deb"?
I am not a Python guy, so any help is welcome to fix those errors. Thanks
With my “I-reviewed-a-hell-lot-of-Python-packages” hat on, -- Jakub Wilk
signature.asc
Description: Digital signature