-
-
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
Move sage-dist-helpers from src/bin to build/bin #25130
Comments
comment:1
I go back-and-forth on that. I agree with your logic completely. But I think we need to talk about where installation-related files go for use "at runtime". Because currently all build-related files live in So I think what we really need is overall better organization of what build-related files are needed at runtime and how to "install" those files in such a way that installing additional Sage packages doesn't necessarily depend on Under that rubrik I'm not sure the existence of |
comment:2
build is for sage-the-distribution, and therefore for everything related to installing packages. |
comment:3
I agree, and yet that ignores everything else I wrote... |
comment:4
Replying to @embray:
Sorry, I had to catch a flight. The longer answer: I disagree with the notion of installation of optional packages being done "at runtime". There is no ticket that describes your goal of being able to install tickets even if $SAGE_ROOT is not present. Right now installation of optional packages does not even reliably work in binary distributions. |
comment:5
I think it should work--at least so long as a compiler is available. As it stands, in binary distributions the feature is not disabled, and it is built into the command-line Alternatively, I have also mentioned that I don't like it in the first place that build-related commands (e.g. So I think there needs to be a clearer vision of what an arbitrary user should expect to be able to do from the |
comment:6
Put more succinctly, if someone wants to move this file around because it's "build-related" I have no problem with that. My point is just that I see it as a distinction without a difference since Sage doesn't clearly separate build-time from run-time in all cases. |
comment:7
I agree with @mkoeppe here. Installing Sage packages should not considered to be run-time, but build-time. |
comment:8
And yet |
comment:9
It wouldn't be expected, for example, in a Linux distribution's sage binary; sage's optional packages would probably be supplied by the distribution's package manager instead. I see the "sage -i" as a mere convenience which "calls out to the SAGE_ROOT" to install a package. |
comment:10
I'd be curious about the sage-on-gentoo approach to this. If that is indeed the case (and I'm not necessarily disagreeing) then we should still clearly delineate what features of the command-line I'm thinking about this because currently installing optional packages is broken in Sage for Windows. Users really have no way to install them. If |
comment:11
On sage-on-gentoo For information this is sage-on-gentoo And these are the commands that I ship if you request debugging and doctesting enabled
As for dealing with optional packages. In sage-on-distro we of course expect them to be installed by the distro's package manager. Not all optional packages may be on offer and filling that gap is hard. Debian has a massive amount of packages so they have a better starting point than me on this. Next there is the problem that there are two categories of optional packages:
Gentoo has useflags, I offer some built time optional packages through useflags. If you want any of Missing packages in that category are |
comment:12
Thanks for details. It's definitely clear to me we need to do some more rethinking of how optional packages are handled. Anyways, sorry to derail this ticket. Like I said in the first place I don't mind moving the current location of |
Author: Matthias Koeppe |
New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:16
I'm concerned that this will be broken if I think it would be fine to just put each path in double-quotes. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Needs review. |
comment:19
Thank you. Sorry this took so long. |
Reviewer: Erik Bray |
comment:20
Thank you! |
Changed branch from u/mkoeppe/move_sage_dist_helpers_from_src_bin_to_build_bin to |
This seems to be a script for use within
build/pkgs
scripts, so it should go tobuild/bin
.CC: @embray @kiwifb @dimpase
Component: build
Author: Matthias Koeppe
Branch/Commit:
abc9fa9
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/25130
The text was updated successfully, but these errors were encountered: