-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Fix suitesparse / cvxopt path configuration for Apple Silicon, Alpine Linux #31905
Comments
comment:1
The following diff works and fixes the bad doctests for me (except some unrelated ones for graphics). diff --git a/build/pkgs/cvxopt/patches/libsuitesparse_path.patch b/build/pkgs/cvxopt/patches/libsuitesparse_path.patch
index fc8908aa7f..2da0e1f36a 100644
--- a/build/pkgs/cvxopt/patches/libsuitesparse_path.patch
+++ b/build/pkgs/cvxopt/patches/libsuitesparse_path.patch
@@ -1,10 +1,13 @@
diff --git a/setup.py b/setup.py
-index d312416..4fa14c4 100644
--- a/setup.py
+++ b/setup.py
-@@ -58,9 +58,9 @@ if sys.platform.startswith("darwin"):
- SUITESPARSE_LIB_DIR = '/usr/local/lib'
- SUITESPARSE_INC_DIR = '/usr/local/include'
+@@ -56,11 +56,11 @@
+ if sys.platform.startswith("darwin"):
+ # macOS
+- SUITESPARSE_LIB_DIR = '/usr/local/lib'
+- SUITESPARSE_INC_DIR = '/usr/local/include'
++ SUITESPARSE_LIB_DIR = '/opt/homebrew/lib'
++ SUITESPARSE_INC_DIR = '/opt/homebrew/include'
else:
- if glob("/usr/lib/x86_64-linux-gnu/libsuitesparse*"):
- # Ubuntu/Debian I am not currently in a position to make a proper branch with this testing setup, my apologies, and in any case it needs some additional logic to test for which version of MacOS we have and/or if homebrew is being used. |
comment:2
Upstream report... |
comment:3
Will they see this as a bug? I already asked about whether to report upstream here. |
Upstream: Reported upstream. No feedback yet. |
comment:4
|
comment:6
These defaults in cvxopt's setup.py can be overridden using environment variables On macOS, we could just set these variables also (to something arbitrary) when system suitesparse is in use. See also #33083 comment:40 - a related issue on |
comment:11
Maybe this is resolved? I can build Sage (including |
comment:12
It's plausible that the cvxopt update in #34150 may have fixed it, but I haven't checked |
comment:13
and |
comment:14
I propose closing this. Sage builds fine on my |
comment:16
Replying to John Palmieri:
can one build Sage's |
comment:17
Replying to Dima Pasechnik:
I can build successfully using Sage's |
I was able to successfully build Sage on M1 (see #30592) but had two main types of doctest errors.
This apparently requires a change in the setup.py (see this sage-devel discussion):
to allow
/opt/homebrew
.Upstream: Reported upstream. No feedback yet.
CC: @dimpase @mkoeppe @orlitzky @kiwifb
Component: porting
Issue created by migration from https://trac.sagemath.org/ticket/31905
The text was updated successfully, but these errors were encountered: