.. index:: Numba .. _Numba: Numba ===== Description ----------- Numba is an open-source NumPy-aware optimizing compiler for Python. It generates optimized machine code from pure Python code using the LLVM compiler infrastructure. User instructions ----------------- Numba is available via the modules system. To add it to your environment run: .. code-block:: bash $ module load numba/0.34.0 Note you will need to have a :ref:`llvmlite` module loaded. Documentation is available at http://numba.pydata.org/numba-doc/dev/index.html Source ------ https://github.com/numba/numba https://pypi.python.org/pypi/numba License ------- BSD 2-clause "Simplified" license. Admin notes ----------- Both python2 and python3 versions were compiled from source. .. code-block:: bash ml purge ml python/2.7.13 llvmlite python setup.py build_ext --inplace mkdir -p /common/debian/9.1/PythonPackages/python/2.7/numba/numba-0.34.0/lib/python2.7/site-packages PYTHONPATH=/common/debian/9.1/PythonPackages/python/2.7/numba/numba-0.34.0/lib/python2.7/site-packages:$PYTHONPATH python setup.py install --prefix=/common/debian/9.1/PythonPackages/python/2.7/numba/numba-0.34.0 ml purge ml python llvmlite python3 setup.py build_ext --inplace mkdir -p /common/debian/9.1/PythonPackages/python/3.5/numba/numba-0.34.0/lib/python3.5/site-packages PYTHONPATH=/common/debian/9.1/PythonPackages/python/3.5/numba/numba-0.34.0/lib/python3.5/site-packages:$PYTHONPATH python3 setup.py install --prefix=/common/debian/9.1/PythonPackages/python/3.5/numba/numba-0.34.0