Checking for dependencies

Here's one way to do it: Have your launcher script attempt to import
the
modules you are concerned about but catch the ImportError exceptions,
and set a flag indicating success or failure. When you've tried them
all then you can check the flags and let the user know what is
missing.

Thanks, this way sounds very reasonable. I will take a stab at it later
today.

You may also want to check into setuptools and the dependency
checking
that it provides. For that to fully work however all your
dependencies
will either need to be eggs, or have egg-info meta-data installed.

Will take a look, but have no experience with setuptools or anything of
the sort. This may be a longer term solution though.

Thanks for the feedback

--Paul

ยทยทยท

On Wed, 2008-07-09 at 00:04 -0700, Robin Dunn wrote: