<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks.<br>
    </p>
    <div class="moz-cite-prefix">On 29.11.18 16:00, Jean-Christophe
      Fillion-Robin wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANLz8R48_o4T+fxuzSj7ZAeg0y3K6KbzSmdK4PXW0YMUDd3P5w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div>Hi Ronald, <br>
          </div>
          <div><br>
          </div>
          <div>Running the following with the help of execute_process
            should help answer your question:</div>
          <div><br>
          </div>
          <div>./bin/vtkpython -c "import sys;
            print(sys.version_info[0:3])"</div>
          <div><br>
          </div>
          <div>You could also call it three times in a row, to get
            major, minor and patch version.</div>
          <div><br>
          </div>
          <div>./bin/vtkpython -c "import sys;
            print(sys.version_info[0])"</div>
          <div>./bin/vtkpython -c "import sys;
            print(sys.version_info[1])"</div>
          <div>./bin/vtkpython -c "import sys;
            print(sys.version_info[2])"</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, Nov 29, 2018 at 9:28 AM David Cole via
          vtk-developers <<a
            href="mailto:vtk-developers@public.kitware.com"
            target="_blank" moz-do-not-send="true">vtk-developers@public.kitware.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you run
          vtkpython and try something that only works in python 2<br>
          (or 3) and infer it...?<br>
          On Thu, Nov 29, 2018 at 4:06 AM Ronald Römer <<a
            href="mailto:rroemer@gmail.com" target="_blank"
            moz-do-not-send="true">rroemer@gmail.com</a>> wrote:<br>
          ><br>
          > What else could I do to get the version?<br>
          ><br>
          ><br>
          > On 28.11.18 19:32, David Gobbi wrote:<br>
          ><br>
          > Would be a useful thing, though.  I'll see about
          submitting an MR.<br>
          ><br>
          > On Wed, Nov 28, 2018 at 11:28 AM Ronald Römer <<a
            href="mailto:rroemer@gmail.com" target="_blank"
            moz-do-not-send="true">rroemer@gmail.com</a>> wrote:<br>
          >><br>
          >> :(<br>
          >><br>
          >> On 28.11.18 19:18, David Gobbi wrote:<br>
          >><br>
          >> Hi Ronald,<br>
          >><br>
          >> 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.<br>
          >><br>
          >>   David<br>
          >><br>
          >><br>
          >> On Wed, Nov 28, 2018 at 10:55 AM Ronald Römer <<a
            href="mailto:rroemer@gmail.com" target="_blank"
            moz-do-not-send="true">rroemer@gmail.com</a>> wrote:<br>
          >>><br>
          >>> According to <a
            href="https://blog.kitware.com/vtk-7-0-0/" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://blog.kitware.com/vtk-7-0-0/</a>
          VTK_PYTHON_VERSION should be set. I installed VTK 8.1.2 with
          pacman on Arch Linux. These are the variables starting with
          VTK_: <a
            href="https://gist.github.com/zippy84/1d4560c721018ebd31ddc87fbfae8083"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://gist.github.com/zippy84/1d4560c721018ebd31ddc87fbfae8083</a>
          But where is VTK_PYTHON_VERSION? Do you have an idea?<br>
          >><br>
          >><br>
          >> --<br>
          >> Viele Grüße<br>
          >> Ronald Römer<br>
          ><br>
          > --<br>
          > Viele Grüße<br>
          > Ronald Römer<br>
          ><br>
          > _______________________________________________<br>
          > Powered by <a href="http://www.kitware.com"
            rel="noreferrer" target="_blank" moz-do-not-send="true">www.kitware.com</a><br>
          ><br>
          > Visit other Kitware open-source projects at <a
            href="http://www.kitware.com/opensource/opensource.html"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br>
          ><br>
          > Search the list archives at: <a
            href="http://markmail.org/search/?q=vtk-developers"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://markmail.org/search/?q=vtk-developers</a><br>
          ><br>
          > Follow this link to subscribe/unsubscribe:<br>
          > <a
            href="https://public.kitware.com/mailman/listinfo/vtk-developers"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
          ><br>
          _______________________________________________<br>
          Powered by <a href="http://www.kitware.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at <a
            href="http://www.kitware.com/opensource/opensource.html"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Search the list archives at: <a
            href="http://markmail.org/search/?q=vtk-developers"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://markmail.org/search/?q=vtk-developers</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a
            href="https://public.kitware.com/mailman/listinfo/vtk-developers"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Viele Grüße
Ronald Römer</pre>
  </body>
</html>