-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Make khash its own extension #18472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make khash its own extension #18472
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# cython: profile=False | ||
""" | ||
Dummy file supporting; see khash.pxd | ||
""" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,6 +335,7 @@ class CheckSDist(sdist_class): | |
'pandas/_libs/index.pyx', | ||
'pandas/_libs/algos.pyx', | ||
'pandas/_libs/join.pyx', | ||
'pandas/_libs/khash.pyx', | ||
'pandas/_libs/indexing.pyx', | ||
'pandas/_libs/interval.pyx', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hashtable is still coupled to khash_python.h There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess I'm still unclear on the transitive-dependencies policy. A bunch of other things are coupled to hashtable, so are they also coupled to khash_python.h? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well this is exactly the issue you may want to find an example how to do this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would getting rid of the .pyx file solve this? |
||
'pandas/_libs/hashing.pyx', | ||
|
@@ -514,6 +515,9 @@ def pxd(name): | |
'pyxfile': '_libs/join', | ||
'pxdfiles': ['_libs/src/util', '_libs/hashtable'], | ||
'depends': _pxi_dep['join']}, | ||
'_libs.khash': { | ||
'pyxfile': '_libs/khash', | ||
'depends': ['pandas/_libs/src/klib/khash_python.h']}, | ||
'_libs.lib': { | ||
'pyxfile': '_libs/lib', | ||
'pxdfiles': ['_libs/src/util', '_libs/missing'], | ||
|
@@ -550,7 +554,6 @@ def pxd(name): | |
'_libs.tslib': { | ||
'pyxfile': '_libs/tslib', | ||
'pxdfiles': ['_libs/src/util', | ||
'_libs/src/khash', | ||
'_libs/tslibs/conversion', | ||
'_libs/tslibs/timedeltas', | ||
'_libs/tslibs/timestamps', | ||
|
@@ -591,12 +594,11 @@ def pxd(name): | |
'sources': np_datetime_sources}, | ||
'_libs.tslibs.parsing': { | ||
'pyxfile': '_libs/tslibs/parsing', | ||
'pxdfiles': ['_libs/src/util', | ||
'_libs/src/khash']}, | ||
'pxdfiles': ['_libs/src/util']}, | ||
'_libs.tslibs.resolution': { | ||
'pyxfile': '_libs/tslibs/resolution', | ||
'pxdfiles': ['_libs/src/util', | ||
'_libs/src/khash', | ||
'_libs/khash', | ||
'_libs/tslibs/frequencies', | ||
'_libs/tslibs/timezones'], | ||
'depends': tseries_depends, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do relative imports here?
from ..khash cimport
? not sure. but this is ok for now.