Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Add SDC extension for numba (#253)
Browse files Browse the repository at this point in the history
Remove support numba_python tests for numba<0.46
Removed numba_pandas package and tests. Move extension point to hpat/__init__.py
  • Loading branch information
PokhodenkoSA authored and shssf committed Nov 3, 2019
1 parent 935c839 commit 1707927
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions hpat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
},
)

0 comments on commit 1707927

Please sign in to comment.