def _spa_python_import(how):
from pvlib import spa<EOL>using_numba = spa.USE_NUMBA<EOL>if how == '<STR_LIT>' and using_numba:<EOL><INDENT>warnings.warn('<STR_LIT>')<EOL>os.environ['<STR_LIT>'] = '<STR_LIT:0>'<EOL>spa = reload(spa)<EOL>del os.environ['<STR_LIT>']<EOL><DEDENT>elif how == '<STR_LIT>' and not using_numba:<EOL><INDENT>warnings.warn('<STR_LIT>')<EOL>os.environ['<STR_LIT>'] = '<STR_LIT:1>'<EOL>spa = reload(spa)<EOL>del os.environ['<STR_LIT>']<EOL><DEDENT>elif how != '<STR_LIT>' and how != '<STR_LIT>':<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return spa<EOL>
Compile spa.py appropriately