From 4f4d630f4a17c7cf80cba94009c9c57c5cf2b7ba Mon Sep 17 00:00:00 2001 From: Sergey Pokhodenko Date: Thu, 24 Oct 2019 22:32:22 +0300 Subject: [PATCH] Add SDC extension for numba Remove support numba_python tests for numba<0.46 Removed numba_pandas package and tests. Move extension point to hpat/__init__.py --- hpat/__init__.py | 9 +++++++++ setup.py | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hpat/__init__.py b/hpat/__init__.py index 605e1cb8b..71451067f 100644 --- a/hpat/__init__.py +++ b/hpat/__init__.py @@ -35,3 +35,12 @@ __version__ = get_versions()['version'] del get_versions + + +def _init_extension(): + '''Register Pandas classes and functions with Numba. + + This exntry_point is called by Numba when it initializes. + ''' + # Importing SDC is already happened + pass diff --git a/setup.py b/setup.py index 179cafcdf..df680a87b 100644 --- a/setup.py +++ b/setup.py @@ -528,4 +528,10 @@ def run(self): install_requires=['numba'], extras_require={'HDF5': ["h5py"], 'Parquet': ["pyarrow"]}, cmdclass=hpat_build_commands, - ext_modules=_ext_mods) + ext_modules=_ext_mods, + entry_points={ + "numba_extensions": [ + "init = hpat:_init_extension", + ], + }, +)