Deprecated since version 1.9: This module has been deprecated. Please use lazy imports instead.

Provision of a service to handle missing packages at runtime. Current just a very thin layer but gives the option to extend handling as much as needed

In this module:

iris.proxy.apply_proxy(module_name, dic)

Attempt the import else use the proxy module. It is important to note that ‘__import__()’ must be used instead of the higher-level ‘import’ as we need to ensure the scope of the import can be propagated out of this package. Also, note the splitting of name - this is because ‘__import__()’ requires full package path, unlike ‘import’ (this issue is explicitly seen in lib/iris/fileformats/ importing pp_packing)

↑ top ↑


class iris.proxy.FakeModule(name)

Bases: object