<div dir="ltr">I had to add a file glob to get the .pyc files, since they now include the interpreter and python version in the filename.<div>Here's a working fix to vtk/CMake/vtkModuleMacrosPython.cmake. I'll submit a MR tomorrow.</div><div><br></div><div><div> # add install rules.</div><div> if (NOT _no_install AND NOT VTK_INSTALL_NO_RUNTIME)</div><div>- install(FILES "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name}"</div><div>- "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name_we}.pyc"</div><div>- "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name_we}.pyo"</div><div>- DESTINATION "${VTK_INSTALL_PYTHON_MODULE_DIR}"</div><div>- COMPONENT "Runtime")</div><div>+ if(VTK_PYTHON_VERSION VERSION_LESS 3)</div><div>+ install(FILES "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name}"</div><div>+ "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name_we}.pyc"</div><div>+ "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name_we}.pyo"</div><div>+ DESTINATION "${VTK_INSTALL_PYTHON_MODULE_DIR}"</div><div>+ COMPONENT "Runtime")</div><div>+ else()</div><div>+ # python 3 uses a different directory for .pyc files, and .pyo files are gone.</div><div>+ install(FILES "${VTK_BUILD_PYTHON_MODULE_DIR}/${_name}"</div><div>+ DESTINATION "${VTK_INSTALL_PYTHON_MODULE_DIR}"</div><div>+ COMPONENT "Runtime")</div><div>+ file(GLOB file_matches "${VTK_BUILD_PYTHON_MODULE_DIR}/__pycache__/${_name_we}.*.pyc")</div><div>+ install(FILES ${file_matches}</div><div>+ DESTINATION "${VTK_INSTALL_PYTHON_MODULE_DIR}/__pycache__"</div><div>+ COMPONENT "Runtime")</div><div>+ endif()</div><div> endif()</div></div><div><br></div><div>Aron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 1:58 PM, Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 16, 2017 at 11:43:25 -0400, Marcus D. Hanwell wrote:<br>
> I originally discovered this issue when doing a make install from<br>
> ParaView with the web stuff turned on using Python 3. Perhaps this<br>
> combination is not tested?<br>
<br>
</span>Ah, that is true. The superbuild is Python2-only right now.<br>
<span class=""><br>
> Yes, and the third party appears to be missing this. I found it in<br>
> building an updated ParaView dependency for Tomviz where we need<br>
> ParaView built against Python 3 and using the web flags in order to do<br>
> the export to a web viewer. If this isn't tested it would be nice to<br>
> get a test added.<br>
><br>
> I am out on travel right now, but can supply the flags for VTK and/or<br>
> ParaView. It is a VTK issue that ParaView seems to inherit when<br>
> turning on these modules recently ported to Python 3 (aside from the<br>
> make install step).<br>
<br>
</span>Aron and I had some off-list messages and have found the culprit<br>
(vtk_module_python_module). I believe he is working on a fix.<br>
<span class="HOEnZb"><font color="#888888"><br>
--Ben<br>
</font></span></blockquote></div><br></div>