Skip to content
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

re-enable mixing libcuspatial wheels with libcudf conda packages #1456

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions python/libcuspatial/libcuspatial/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@
import ctypes
import os

import libcudf


def load_library():
# libcudf must be loaded before libcuspatial because libcuspatial
# references its symbols
libcudf.load_library()
try:
# libcudf must be loaded before libcuspatial because libcuspatial
# references its symbols
import libcudf
libcudf.load_library()
except ModuleNotFoundError:
# 'libcuspatial' has a runtime dependency on 'libcudf'. However,
# that dependency might be satisfied by the 'libcudf' conda package
# (which does not have any Python modules), instead of the
# 'libcudf' wheel.
#
# In that situation, assume that 'libcudf.so' is in a place where
# the loader can find it.
pass

# Dynamically load libcuspatial.so. Prefer a system library if one is
# present to avoid clobbering symbols that other packages might expect,
Expand Down
Loading