[Distutils] EntryPoint.require() when dist=None

Phillip J. Eby pje at telecommunity.com
Wed Nov 16 04:27:44 CET 2005


At 12:18 PM 11/16/2005 +1000, Ashley Walsh wrote:
>EntryPoint.require() fails when extras==() and dist==None because it
>still attempt to call dist.requires().  Should the method be changed
>to somthting like::
>
>      def require(self, env=None, installer=None):
>              if self.extras and not self.dist:
>                  raise UnknownExtra("Can't require() without a
>distribution", self)
>              if self.dist:
>                     map(working_set.add,
>                         working_set.resolve(self.dist.requires
>(self.extras),env,installer))

Probably.  :)  I'll have a look at it.



More information about the Distutils-SIG mailing list