How to exclude recursive module dependencies? Is there a way to exclude dependencies of dependencies? For example:
my_module.info contains
dependencies[] = views

dependencies[] = ctools

my_sub_module.info contains

dependencies[] = my_module

On the module display page my_sub_modue will have my_module, views and ctools as dependencies. I know this is the desired outcome in 99% of all situations but I was curious to know if there were a way to have only my_module (or items explicitly stated in the info file) as the dependency for my_sub_module.

Thanks
In my opinion, the best is have always in mind solid and stable solution.

If you have this problem you should change your design, not your code.

Your module should have a display, and your submodule should have a display who modifies your module's display.