> Perhaps the setup script could do something like
>
> try:
> import pkg_resources
> pkg_resources.require("Paver >=1.0")
> import paver
> except:
> (add the minilib and import paver)
Right, the issue is that, if anything's been added to the minilib from
outside paver, it won't get imported or be available.
Thanks,
S
On Mon, Sep 14, 2009 at 3:45 PM, sste...@gmail.com <sste...@gmail.com> wrote:Right, the issue is that, if anything's been added to the minilib from
On Sep 14, 2009, at 3:38 PM, Kevin Dangoor wrote:
> Perhaps the setup script could do something like
>
> try:
> import pkg_resources
> pkg_resources.require("Paver >=1.0")
> import paver
> except:
> (add the minilib and import paver)
outside paver, it won't get imported or be available.
then maybe like this:
try:
import pkg_resources
pkg_resources.require("Paver>=1.0")
import paver
except:
pass
(add the minilib and import paver)
That way, paver gets imported from wherever it is setuptools finds it. The second importing of paver won't do anything in that case. And the stuff in the minilib can still be found.