Repository navigation
BLD: ship tables in wheel - #17
Conversation
Thanks Lucas! The generation scripts take the paths as command line arguments so I think those should actually be fine as is. There's a function in |
|
Thinking some more — I think we should expose a function in the # xsref/__init__.py
import importlib.resources
def get_tables_path():
return importlib.resources.files('xsref').joinpath('tables')Then https://github.com/scipy/xsf/blob/dbe85a396d6799b65d92aa53ff6c354f8268b6b5/tests/CMakeLists.txt#L1 would be replaced by something like execute_process(
COMMAND ${Python3_EXECUTABLE} -c "import xsref; print(xsref.get_tables_path())"
OUTPUT_VARIABLE PY_OUT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(XSREF_TABLES_PATH "${PY_OUT}")and would be replaced by tables_path = xsref.get_tables_path() |
Yeah, that sounds like a good idea. |
|
Nice, the tests ran. This looks ready to merge now |
|
if CI is happy on scipy/xsf#175 then I will bring this out of draft |
@steppi I assume we will also need to update the generation scripts for the new location