-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Eliminate dependence on VERSION.txt within Sage #25150
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
Why "blocker"? My gut feeling says that this ticket has a non-trivial chance of breaking stuff, so it should be treated as a normal ticket for Sage 8.3. |
comment:5
Because we don't want to add an additional annoyance to Sage 8.2 for downstream packagers that they'll have to work around, only to remove that workaround for the next version. It's a simple change we can make now so why not? |
comment:6
For the record I have already worked around. I am not exactly convinced by the content of this ticket either. Admittedly some things have to be considered carefully, and I can see due diligence in action. |
comment:7
It doesn't break anything. VERSION.txt is a completely static file shipped in the Sage sources, generated by |
comment:8
Replying to @kiwifb:
You may have, but not Debian (which, granted, is in a state of limbo right now, but something we are hoping to fix), and conda at a minimum. |
comment:9
Conflicts... Also, we should probably fix this properly instead of a last-minute effort that may or may not improve things. |
comment:10
I would say this is "properly"... |
comment:12
Please properly review this ticket. It fixes an issue that was introduced in development by #25056 and is problematic for non-source-based Sage installs ( |
comment:13
I'll leave it to Volker to decide on the blocker status. The reason for my "git feeling" is that tickets touching the build system have a tendency to introduce subtle breakage. And this isn't a simple bug-fix either, it's really adding new functionality. |
comment:14
I don't think As Jeroen says it touches bits of the build system, while I don't expect any problem (and sage-on-gentoo doesn't really care) I understand him being worried about it. At the end of the day, I'll probably patch less than before with this ticket. |
comment:15
Our existing implementation is far from ideal, but I also don't see a real improvement in this patch. The way it should be is: there is a version py and sh file, for import/source in python and shell scripts. There shouldn't be python scripts looking at environment variables that where set elsewhere. There should be some mechanism to check that |
comment:16
VERSION_FULL is actually a banner. So how about this change? VERSION_FULL --> VERSION_BANNER |
comment:18
Replying to @kiwifb:
The only "mention of I agree that's not a great place for that file, but it's where it already existed. I don't know what you do with it on gentoo (though having it there isn't the worst place for it). I think I would rather do away with Which is why, while I'm sorry to make a fight over this, I just feel like it's a little unfair to unilaterally brush it off without due consideration, especially since it was only to address a legitimate complaint of a regression for downstream packagers. I considered this change and its impact carefully. I don't necessarily expect anyone to take my word for that, but at least do me the same consideration. I'll also note that at the very least d87fd38c is now necessary for the tests to pass on Docker. We force |
comment:19
Replying to @vbraun:
+1 to all of the above in principle. However, you'll see in this branch that it actually eliminates several uses of The goal there was that at the very least, running |
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:33
I am actually OK with the ticket in this form. My last comment may not have been clear enough considering the answer I got from it. I am happy for it to move to the next stage. However it is marked to merge in 8.3 and some bits will need rebasing as soon as 8.2 is released (version.py and version.sh) so I am bit concerned about changing to positive right now. But I approve of it. |
Reviewer: François Bissey |
comment:34
there are merge conflicts. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:36
Rebased. I still believe this to be better than the current situation, though I would welcome concrete feedback and/or criticism. |
comment:38
Why did you move sourcing of |
comment:39
Depending on how you read the diff, I didn't move it at all :) At least, in terms of intent, what I was moving was:
which I felt should work even from a clean source checkout. Previously these flags did not work in that case because sourcing sage-env would not work correctly. In other words, from a clean source checkout you can now do:
and so on. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:41
Rebased again. |
comment:42
Let's try to get it in again. |
Changed branch from u/embray/build/remove-version.txt to |
As discussed on #25056, that ticket introduced a small, but annoying runtime dependency on a file that lives in
$SAGE_ROOT
,VERSION.txt
, which creates problems for downstream distributions.This proposes to eliminate practically all dependence on
VERSION.txt
, by instead writing the same string to a new variableSAGE_VERSION_BANNER
which is stored in bothsrc/bin/sage-version.sh
andsrc/sage/version.py
. Although mildly redundant, this is at least consistent.Originally I thought to just outright remove
VERSION.txt
since at this point it is not used directly anywhere in sagelib or sage-the-distribution. However, there are probably various external utilities that look for that file--I can confirm that the patchbot is one such utility, if nothing else. But there are likely others. So it's harmless to keep it.CC: @kiwifb @jdemeyer @vbraun
Component: misc
Author: Erik Bray
Branch/Commit:
c12e442
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/25150
The text was updated successfully, but these errors were encountered: