I had a module in ika where every spec except one needed an extra BPL file. I could not include the file at the module level, because that one spec got a BPL error if I did (the extra BPL file referred to the String type, which was not defined for that one spec).
I suppose a work-around would be to have an extra BPL defining String, to be included just for that one oddball spec, but that seems like a bit of a hack.
A more elegant solution would be to allow a spec to say something like no_extra_bpl=b"mumble.bpl" to cancel out the module-level attribute.
I had a module in
ikawhere every spec except one needed an extra BPL file. I could not include the file at the module level, because that one spec got a BPL error if I did (the extra BPL file referred to the String type, which was not defined for that one spec).I suppose a work-around would be to have an extra BPL defining String, to be included just for that one oddball spec, but that seems like a bit of a hack.
A more elegant solution would be to allow a spec to say something like
no_extra_bpl=b"mumble.bpl"to cancel out the module-level attribute.