Skip to content

Commit

Permalink
fix lib paths (still not to update rpath/runpath)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 6, 2024
1 parent acecf8e commit e6acd0c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ mkdir -p final_dist
python -m auditwheel repair \
-w final_dist \
--exclude "libucm.so.0" \
--exclude "libucp.so.0" \
--exclude "libucx.so.0" \
--exclude "libucs.so.0" \
--exclude "libuct.so.0" \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ requires = [
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.

[project]
name = "ucx-py"
name = "ucx-py-cu12"
dynamic = ["version"]
description = "Python Bindings for the Unified Communication X library (UCX)"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
18 changes: 17 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,24 @@
from setuptools import setup
from setuptools.extension import Extension

include_dirs = [os.path.dirname(get_python_inc())]
library_dirs = [get_config_var("LIBDIR")]

# if the 'libucx' wheel was installed, add its library location to
# library_dirs so it'll be linked against
#
# NOTE: doing this '.__file__' stuff because `sysconfig.get_path("platlib")` and similar
# can return paths to the main Python interpreters' installation locations...
# not where 'libucx' is going to be installed at build time when using
# build isolation
try:
import libucx

libucx_libdir = os.path.join(os.path.dirname(libucx.__file__), "lib")
library_dirs.append(libucx_libdir)
except ImportError:
pass

include_dirs = [os.path.dirname(get_python_inc())]
libraries = ["ucp", "uct", "ucm", "ucs"]
extra_compile_args = ["-std=c99", "-Werror"]

Expand Down

0 comments on commit e6acd0c

Please sign in to comment.