[vtk-developers] Identify the Python version of VTK

Ronald Römer rroemer at gmail.com
Thu Nov 29 10:02:07 EST 2018


Thanks.

On 29.11.18 16:00, Jean-Christophe Fillion-Robin wrote:
> Hi Ronald,
>
> Running the following with the help of execute_process should help
> answer your question:
>
> ./bin/vtkpython -c "import sys; print(sys.version_info[0:3])"
>
> You could also call it three times in a row, to get major, minor and
> patch version.
>
> ./bin/vtkpython -c "import sys; print(sys.version_info[0])"
> ./bin/vtkpython -c "import sys; print(sys.version_info[1])"
> ./bin/vtkpython -c "import sys; print(sys.version_info[2])"
>
> On Thu, Nov 29, 2018 at 9:28 AM David Cole via vtk-developers
> <vtk-developers at public.kitware.com
> <mailto:vtk-developers at public.kitware.com>> wrote:
>
>     Can you run vtkpython and try something that only works in python 2
>     (or 3) and infer it...?
>     On Thu, Nov 29, 2018 at 4:06 AM Ronald Römer <rroemer at gmail.com
>     <mailto:rroemer at gmail.com>> wrote:
>     >
>     > What else could I do to get the version?
>     >
>     >
>     > On 28.11.18 19:32, David Gobbi wrote:
>     >
>     > Would be a useful thing, though.  I'll see about submitting an MR.
>     >
>     > On Wed, Nov 28, 2018 at 11:28 AM Ronald Römer <rroemer at gmail.com
>     <mailto:rroemer at gmail.com>> wrote:
>     >>
>     >> :(
>     >>
>     >> On 28.11.18 19:18, David Gobbi wrote:
>     >>
>     >> Hi Ronald,
>     >>
>     >> The exported configuration options are in VTKConfig.cmake.  I
>     searched this file, and the only Python-related setting was
>     VTK_WRAP_PYTHON.  VTK doesn't export VTK_PYTHON_VERSION for use by
>     other projects.
>     >>
>     >>   David
>     >>
>     >>
>     >> On Wed, Nov 28, 2018 at 10:55 AM Ronald Römer
>     <rroemer at gmail.com <mailto:rroemer at gmail.com>> wrote:
>     >>>
>     >>> According to https://blog.kitware.com/vtk-7-0-0/
>     VTK_PYTHON_VERSION should be set. I installed VTK 8.1.2 with
>     pacman on Arch Linux. These are the variables starting with VTK_:
>     https://gist.github.com/zippy84/1d4560c721018ebd31ddc87fbfae8083
>     But where is VTK_PYTHON_VERSION? Do you have an idea?
>     >>
>     >>
>     >> --
>     >> Viele Grüße
>     >> Ronald Römer
>     >
>     > --
>     > Viele Grüße
>     > Ronald Römer
>     >
>     > _______________________________________________
>     > Powered by www.kitware.com <http://www.kitware.com>
>     >
>     > Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>     >
>     > Search the list archives at:
>     http://markmail.org/search/?q=vtk-developers
>     >
>     > Follow this link to subscribe/unsubscribe:
>     > https://public.kitware.com/mailman/listinfo/vtk-developers
>     >
>     _______________________________________________
>     Powered by www.kitware.com <http://www.kitware.com>
>
>     Visit other Kitware open-source projects at
>     http://www.kitware.com/opensource/opensource.html
>
>     Search the list archives at:
>     http://markmail.org/search/?q=vtk-developers
>
>     Follow this link to subscribe/unsubscribe:
>     https://public.kitware.com/mailman/listinfo/vtk-developers
>
-- 
Viele Grüße
Ronald Römer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181129/4be55fef/attachment-0001.html>


More information about the vtk-developers mailing list