Cython deprecation warning: "The 'IF' statement is deprecated" #6231
Labels
Build or Dep
Issues related to building the code or dependencies
Cython / Python
Cython or Python issue
Description
cuML distributes both GPU-accelerated and CPU-only packages.
At build time, it controls whether GPU-related bits of the Cython code are built by passing
GPUBUILD
through to Cython.cuml/python/cuml/CMakeLists.txt
Lines 153 to 154 in f29293f
That guards imports like this:
cuml/python/cuml/cuml/internals/base.pyx
Lines 74 to 76 in f29293f
That pattern is deprecated in the version of Cython used in builds for the 25.02 release, resulting in many of this type of warning in CI logs:
cuML builds should be adapted to use a different pattern.
Benefits of this work
IF
)Acceptance Criteria
IF
pattern for conditional compilationApproach
See the discussion and links in cython/cython#4310 for ideas on how to approach this.
Notes
I'm opening this to track, but not planning to personally work on it.
The text was updated successfully, but these errors were encountered: