> Le 28 mars 2016 à 22:36, Dale Henrichs <[email protected]> a 
> écrit :
> 
> Stef,
> 
> You don't need to repeat packages in the requires statement. Requiring 
> 'Math-DistributionGamma' is sufficient to pick up 'Math-Core', 
> 'Math-DHB-Numerical', 'Math-Series', and 'Math-Core-Distribution' as 
> requirements as well … .

Indeed but it is a bad practice. If  'Math-DistributionBeta’ has direct 
dependencies to 'Math-Core', 'Math-DHB-Numerical', 'Math-Series', and 
'Math-Core-Distribution’, they should be expressed. Else, you will end up with 
a configuration with missing requirements.
ex: if I update 'Math-DistributionGamma’  and do no depend anymore on 
'Math-Series’ for example. I will remove 'Math-Series’ from  
'Math-DistributionGamma’  requirements. Then, I end with a missing dependency 
for 'Math-DistributionBeta’.

What you could do is to define a group with 'Math-Core', 'Math-DHB-Numerical', 
'Math-Series', and 'Math-Core-Distribution’ if it makes senses for your 
business logic. Then, both 'Math-DistributionGamma’ and  
'Math-DistributionBeta’ could add this group as requirement.
Note that factorization of dependencies is not always a good idea. If 
dependencies you want to factorize have nothing to do all together, it’s better 
to avoid to group them because they will change many times.

Christophe

Reply via email to