jameskermode/f90wrap — pull request #5 by steven-murray (2014-04-17 16:59:27+00:00)
Title: Moduleselection

I'm sorry there's a heap of changes in here. I really should get better at this whole git thing.
So the main changes are obviously that there are options for --only and --skip now. To these may be provided PROCEDURE names which will be the only things that are wrapped. It hunts down all Types in these procedures, and in their host modules -- types both referenced and defined. It also hunts down Types which are referenced by these Types (recursively until exhaustion). These types will get the special treatment from f90wrap, but others are culled by a FortranTransformer subclass.

I haven't done anything for special cases like if there are two identically named procedures in different modules. Not sure what should happen there.

I've also modified the mockderivetype example so that it contains a subroutine which isn't wanted, which itself references a type that isn't wanted. I have tested that these are left out when specified.

I've also slightly cleaned up/enhanced the main f90wrap script. I've made it to use argparse rather than optparse. I hope you weren't using optparse for a specific reason. I know argparse doesn't come builtin with python pre-2.7, but even so it is downloadable as a library. We can switch back to optparse, but argparse seems a lot nicer. I've also put the version number in the __init__ file of the package for want of a better place. I probably should have done these changes all in little bits so you could reject them easier if you didn't want them.

Looking pretty close to working now though!