project dependency management
This is a tricky part of package management. I have no ready solution apart from 'have a look at debian packagemanagement'.
For installation the dependencies attribute of a module should contain a version expression. In example dependencies: token (<= 1.4)