[SciPy-dev] Package organization
Fernando.Perez at colorado.edu
Fri Oct 14 17:48:11 CDT 2005
Pearu Peterson wrote:
> On Fri, 14 Oct 2005, Travis Oliphant wrote:
>>First. I like what Fernando is trying to do with the scipy.kits
>>concept. The most valuable thing scipy could provide is a mechanism
>>for auto-indexing your scipy-related packages for a help browser. I
>>don't think packages would need to live under scipy to accomplish this
>>(but it would make it easier). There are other mechanism like the
>>environment variable concept that could also collect package
>>information. In fact, I wonder if scipy could detect that some module
>>imported it and add that to some internal index (or only add it if the
>>module defined some __scipy__ name or something...
> That's a difficult problem and I think with some nasty hacks it could be
> solved, e.g. overwriting builtin __import__ function by adding to it some
> callback mechanism.
Ah, I'd forgotten about __import__, sorry. So yes, using this one, a hack
could be written to trap 'import scipy' calls, which would work on every call
(not just the first).
Always forgetting something...
More information about the Scipy-dev