[vtk-developers] Slight behavioral change in WhatModulesVTK.py (new module system)?

Elvis Stansvik elvis.stansvik at orexplore.com
Fri Jan 11 16:03:15 EST 2019


Den fre 11 jan. 2019 kl 21:21 skrev Ben Boeckel <ben.boeckel at kitware.com>:
>
> On Sat, Jan 12, 2019 at 07:13:02 +1100, Andrew Maclean wrote:
> > I am surprised and amazed this works with the new system.
>
> I updated it since it was requested here. It also turned out to be quite
> helpful for determining real dependencies of things in ParaView and
> examples.
>
> > When I wrote it, it:
> > 1) Only looked at the header files in your code and, from their name,
> > worked out the module to use. Ad a consequence of this we had to manually
> > include e.g. some modules like the OpenGL stuff.
>
> That's pretty much true still.
>
> > 2) Does detect modules excluded from the wrapping.
>
> Not hard now; it's still just a keyword in `vtk.module`. Though it
> doesn't do so right now.
>
> > 3) It was written before external modules were introduced so it may not
> > properly work with them.
>
> It only cares about `vtk.module` files (just like it cared only about
> `module.cmake` before. If it can find them in the path given, I don't
> think it should matter too much.
>
> > The intent was to provide to the user a guide as to what modules should be
> > included so they may still have to add extras.

Yep, we always did have to tweak it a bit and that's OK, it's very
useful nonetheless.

I run the script from time to time (not that often), just to check
that the list of modules we link against is accurate wrt to the code.

Elvis

>
> Yeah. I imagine the hard-coded if-then extensions were done because of
> this. Doing `IMPLEMENTABLE`/`IMPLEMENTS` logic should make it work for
> any module.
>
> --Ben


More information about the vtk-developers mailing list