-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
MP_LIBRARY, BLAS, PYTHON need inst_ in Makefile.in #27254
Comments
This comment has been minimized.
This comment has been minimized.
Commit: |
New commits:
|
comment:3
I'm actually not sure this is exactly right after all: diff --git a/build/make/Makefile.in b/build/make/Makefile.in
index eea7ceb..0bf0fcc 100644
--- a/build/make/Makefile.in
+++ b/build/make/Makefile.in
@@ -31,9 +31,9 @@ INST = $(SAGE_SPKG_INST)
# Aliases for optional packages selected at configure time
TOOLCHAIN = @SAGE_TOOLCHAIN@
-PYTHON = python@SAGE_PYTHON_VERSION@
-MP_LIBRARY = @SAGE_MP_LIBRARY@
-BLAS = @SAGE_BLAS@
+PYTHON = $(inst_python@SAGE_PYTHON_VERSION@)
+MP_LIBRARY = $(inst_@SAGE_MP_LIBRARY@)
+BLAS = $(inst_@SAGE_BLAS@)
# Files to track installation of packages
BUILT_PACKAGES = @SAGE_BUILT_PACKAGES@ the problem is that there are some places, for example, that expect the Instead, I would do like: diff --git a/build/make/deps b/build/make/deps
index e9008d2..f0a9c0b 100644
--- a/build/make/deps
+++ b/build/make/deps
@@ -156,7 +156,7 @@ sagelib: \
$(inst_mpc) \
$(inst_mpfi) \
$(inst_mpfr) \
- $(MP_LIBRARY) \
+ $(inst_$(MP_LIBRARY)) \
$(inst_ntl) \
$(inst_numpy) \
$(inst_pari) \ The problem is when this was just
and so on. In other words, for |
comment:4
Replying to @embray:
Maybe that just means that we should have two of these variables: one for the Python executable and one for the dependency. Surely we'll need that anyway if we want to support system Python. |
comment:5
But I mean, even the package name is used as a variable alone. For example, in |
comment:6
Replying to @embray:
But that's just for convenience. We are actually textually replacing names like |
comment:7
I agree, but I still think it's better to be consistent, and not change the current usage if it isn't necessary to. If you look at my patch above you'll see that it's sufficient (when doing the same for BLAS, etc.) to solve the problem this ticket is trying to solve. |
comment:8
To put another way, traditionally these variables have been used to represent what package was selected at configure-time to satisfy some dependency that can be satisfied by multiple packages. Having |
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.
Changed author from Jeroen Demeyer, Dima Pasechnik to Dima Pasechnik |
comment:12
Looks good. I'm trying to build with this now--everything seems normal though. |
Reviewer: Erik Bray |
Changed branch from u/dimpase/build/correct_generic_deps_t27254 to |
In particular to properly handle "dummy" targets like gmp/mpir,
sagelib
should depend upon$(inst_$(MP_LIBRARY))
.Also,
sagelib
indeps
should only depend on one Python:CC: @embray @jdemeyer
Component: build
Author: Dima Pasechnik
Branch/Commit:
356621a
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/27254
The text was updated successfully, but these errors were encountered: