Skip to content

Commit

Permalink
try moving libucx dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jun 5, 2024
1 parent 663320d commit 2f06f89
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ files:
table: build-system
includes:
- build_python
py_rapids_build:
output: pyproject
pyproject_dir: .
extras:
table: tool.rapids-build-backend
key: requires
includes:
- depends_on_ucx_build
py_run:
output: pyproject
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
build-backend = "rapids_build_backend.build"
requires = [
"cython>=3.0.0",
"libucx==1.15.0",
"rapids-build-backend>=0.3.0,<0.4.0dev0",
"setuptools>=64.0.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
Expand Down Expand Up @@ -119,6 +118,9 @@ commit-files = [
"ucp/COMMIT_FILE"
]
dependencies-file = "dependencies.yaml"
requires = [
"libucx==1.15.0",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.

[tool.setuptools]
license-files = ["LICENSE"]
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import os
from distutils.sysconfig import get_config_var, get_python_inc

# TODO: delete this before merging. Just checking if this has to be available
# when setup.py is run.
import libucx # noqa: F401
from Cython.Distutils.build_ext import new_build_ext
from setuptools import setup
from setuptools.extension import Extension
Expand All @@ -25,7 +28,7 @@ def _find_libucx_libs_and_headers():
be compiled against those libucx-wheel-provided versions of the UCX libraries.
"""
try:
import libucx
import libucx # noqa: F811
except ImportError:
return [], []

Expand Down

0 comments on commit 2f06f89

Please sign in to comment.