[Zope-dev] Re: [Checkins] SVN: zope.app.securitypolicy/trunk/setup.py This package doesn't just work with any versin of zope.i18nmessageid, it needs

Philipp von Weitershausen philipp at weitershausen.de
Fri Nov 9 10:27:26 EST 2007


Stephan Richter wrote:
> On Friday 09 November 2007, Philipp von Weitershausen wrote:
>> Modified: zope.app.securitypolicy/trunk/setup.py
>> ===================================================================
>> --- zope.app.securitypolicy/trunk/setup.py      2007-11-09 13:08:59 UTC
>> (rev 81634) +++ zope.app.securitypolicy/trunk/setup.py      2007-11-09
>> 14:52:52 UTC (rev 81635) @@ -58,7 +58,7 @@
>>                        'zope.configuration',
>>                        'zope.exceptions',
>>                        'zope.i18n',
>> -                      'zope.i18nmessageid',
>> +                      'zope.i18nmessageid >= 3.4.2',
>>                        'zope.interface',
>>                        'zope.location',
>>                        'zope.schema',
> 
> Please let's stop putting versions into setup.py. This is a really bad idea, 
> since it will make it very hard to work with in different project with 
> different version requirements.

Only the '==' qualifier in setup.py is a bad idea because it locks you 
down. Other qualifiers are actually quite necessary sometimes.

In this case, for instance, we *need* the >= qualifier because 
zope.app.securitypolicy won't work with just any version of 
zope.i18nmessageid. It needs at least version 3.4.2 because that one 
introduced the ZopeMessageFactory object which zope.app.securitypolicy 
wants to import.

Such considerations must always be made when you add a feature to 
package A, and then use that new feature in package B. Package B must 
then require at least that new version of package A.


More information about the Zope-Dev mailing list