-
Notifications
You must be signed in to change notification settings - Fork 535
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
Remove NumPy <2 pin #6031
Remove NumPy <2 pin #6031
Changes from all commits
dff4094
c781416
11b0689
85cd885
8e2a41b
0f00c86
6243af8
7ca536c
2edf876
f5e5882
b00c929
16d2c49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,6 +229,7 @@ dependencies: | |
- dask-cuda==24.10.*,>=0.0.0a0 | ||
- joblib>=0.11 | ||
- numba>=0.57 | ||
- numpy>=1.23,<3.0a0 | ||
# TODO: Is scipy really a hard dependency, or should | ||
# we make it optional (i.e. an extra for pip | ||
# installation/run_constrained for conda)? | ||
|
@@ -509,7 +510,7 @@ dependencies: | |
- *scikit_learn | ||
- statsmodels | ||
- umap-learn==0.5.3 | ||
- pynndescent==0.5.8 | ||
- pynndescent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dantegd , is it alright if we relax this pin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given passing tests, it should be fine to relax now |
||
- output_types: conda | ||
packages: | ||
- pip | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ============================================================================= | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
# Copyright (c) 2022-2024, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
# in compliance with the License. You may obtain a copy of the License at | ||
|
@@ -34,7 +34,3 @@ rapids_cython_create_modules( | |
MODULE_PREFIX neighbors_ | ||
ASSOCIATED_TARGETS cuml | ||
) | ||
|
||
foreach(target IN LISTS targets_using_numpy) | ||
target_include_directories(${target} PRIVATE "${Python_NumPy_INCLUDE_DIRS}") | ||
endforeach() | ||
Comment on lines
-37
to
-40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trying dropping this. AFAICT the Cython modules above don't Not sure whether it would cause the tests to hang. At a minimum, it is unused; so, it is worth cleaning up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah not sure what happened there. I traced back in the blame to where this was added. Looks like @vyasr recommended removing it back at the source: #4818 (comment) But there wasn't any additional discussion on that PR (maybe it happened somewhere else), and the change was merged in. I agree with you that it seems to be unused. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Originally was looking for clues on fixing the hanging test ( #6031 (comment) ). Tried this just in case it helped, but it didn't matter Read through the history here yesterday. It seems like NumPy was a build dependency a while back (though still wasn't clear then whether it was being used). Think since then every update has assumed NumPy was a build dependency. However as we don't require it during the build, it isn't actually satisfied. Further we would have needed Think this hasn't presented much of an issue as we don't actually set In any event, this time seems as good as any for cleaning this up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we have a NumPy dependency
cuml/python/cuml/cuml/linear_model/logistic_regression_mg.pyx
Line 27 in 973a65f
However it isn't getting declared as one. So explicitly added NumPy as a dependency