[vtkusers] Simultaneously build Python 2&3 interface
David Gobbi
david.gobbi at gmail.com
Thu Oct 8 14:05:07 EDT 2015
On Tue, Oct 6, 2015 at 2:51 PM, Ben Boeckel <ben.boeckel at kitware.com> wrote:
> On Sun, Oct 04, 2015 at 19:51:56 +0200, Matthias Blaicher wrote:
> >
> > I'm unclear though, how I'm supposed to build a python 2 and python 3
> > interface at the same time. Is this even possible right now? Hints on
> > how to do this would be greatly appreciated!
>
> Right now, use two build trees. A single build tree supporting both is
> not feasible currently. Adding suffixes to Python-dependent modules such
> as vtkFiltersPython will need to be done so they don't conflict with
> each other, but other than that, getting a multi-python-version build
> would require major changes to the module system (and FindPython too)
> for everything to work properly.
>
There is a patch here that adds pyversion-specific suffixes to libraries
that link to Python:
https://gitlab.kitware.com/vtk/vtk/merge_requests/744/diffs
It's very far from a complete solution for the multi-python build, but it
might satisfy your current needs.
There's also a patch in the works for the relative import issue:
https://gitlab.kitware.com/vtk/vtk/merge_requests/748
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151008/05221783/attachment.html>
More information about the vtkusers
mailing list