-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
sage.env.sage_include_directories: Remove hard dependency on numpy #31333
Comments
Author: Matthias Koeppe |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits: |
comment:5
I think there should still be a log message if numpy couldn't be found, since otherwise errors further down the compile chain might be hard to track down. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:9
The branch looks fine. Can the description be a bit more verbose on what this change will achieve? Obviously it makes the thing touched more resilient but for what purpose. |
This comment has been minimized.
This comment has been minimized.
Reviewer: François Bissey |
comment:11
LGTM. |
comment:12
Thanks! |
comment:13
Should this not better print an error message in case numpy is not found? |
comment:14
No, the whole point of this ticket is that it's not an error. |
Changed branch from u/mkoeppe/sage_env_sage_include_directories__remove_hard_dependency_on_numpy to |
(extracted from and needed for #29865)
sage_include_directories
returns the basic list of include directories for compiling extensions, not including directories obtained through pkgconfig etc. This basic list includes directories supplied by numpy. This is fine for the monolithic Sage library becausenumpy
is a standard package; but in the course of modularization, we will have various distributions that do not need the dependency on numpy.We use try/expect around the import and call to numpy.
CC: @kiwifb @tobiasdiez
Component: refactoring
Author: Matthias Koeppe
Branch/Commit:
4550eb6
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/31333
The text was updated successfully, but these errors were encountered: