Given a numba-decorated code,
from numba import jit
@jit(nopython=True)
def f():
...
, how does one distribute this as a package with Numba as an optional dependency? For example, I want to install my package via pip install mypackage[jit] that includes numba and removing the extra tag excludes numba.
A bad answer is one that requires user to install Numba and, for example, set NUMBA_DISABLE_JIT=1.