-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Allow sage to run in the absence of sage-env #28225
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
Dependencies: #25786 |
Author: Antonio Rojas |
comment:5
I have been I also have
which may be harder to replace more generally. I haven't made any fix to runtests, but |
comment:6
Thanks. Most of these work fine here just because /bin symlinked to /usr/bin, but that certainly shouldn't be assumed |
comment:7
Yes, I hadn't thought of that scenario at all, where the variable being undefined is actually helpful. But it will break on other system. But that doesn't help with |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Replying to @kiwifb:
Fixed in the latest commit (in a somewhat hackish way, would be nice if someone could come up with a nicer way to do it) |
comment:11
Replying to @antonio-rojas:
Certainly does look hackish. I would have never thought of using |
comment:12
Sure it does - we use this kind of thing frequently in Arch build scripts to get the python lib dir independently of the version. |
comment:13
OK, I am reviewing all my patches and stuff for interesting bits. In |
comment:14
How do you deal with |
comment:15
Replying to @kiwifb:
After line 1078 we also have |
comment:16
Adding my ideas for New commits:
|
comment:17
It may be impossible to completely fix the |
comment:24
All tests pass now. This branch conflicts with #25786 so it will need rebasing once that one goes in. |
comment:25
I missed the singularpath one because I deal with it in the same patch as I do adjustments to I know there is no doctests in |
comment:26
Replying to @kiwifb:
The only remaining usages of SAGE_DOC_SRC in sagelib are in sage/doctest/control.py (which adds it to the list of tested dirs when calling sage -t -a) and sage/docs/conf.py (where AFAICS all usages besides the one fixed here are for doc build), so I don't expect more failures.
No. COPYING.txt should probably be installed somewhere in SAGE_SHARE. But given that this is currently broken for distros anyway, I'd say it's material for a different ticket. |
comment:27
Replying to @antonio-rojas:
Cool, that's a clean up that's almost done then.
Agreed. What to do with that file may be dependent on distro policies as well. It belongs to the location I set This ticket is dealing with a good number of loose ends, it is quite nice. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:29
Rebased on top of beta 4 |
Reviewer: François Bissey |
comment:30
Well, it all looks good to me. Anyone knows why the patchbot doesn't seem to want to pick it? Is it too early after 8.9.beta4? |
comment:31
This is being merge-tested right now. Not runtime but build time, I wish I had spotted some instances of I am hoping the ticket will be merged in the current state and then we can address those little left overs in a follow up ticket. |
comment:32
Another kink I missed before because of my setting of |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:34
I should have said to wait for a follow up ticket. Nevermind, let's see how it plays out. |
comment:35
Some version of this ticket was merged into 8.9.beta5, and I'm guessing the last commit didn't make it. In any case, the changes that were merged cause an error with Python 3:
The reason is that the
That means that it uses Python 2 by default. With a Python 3 build, Python 2 doesn't know about the I'm not sure what you should do instead. Maybe
What variables are guaranteed to be set when |
comment:36
I think We need a follow up ticket for that last commit that didn't make and a couple of things I spotted in |
comment:37
c960520 was merged and is in 8.9.beta5, go and make a new ticket... |
comment:38
Replying to @kiwifb:
The only thing that script does is to check arguments and run
plus some explanatory comments. The whole script is deprecated, so maybe it doesn't matter much what happens to it, but you might cc jdemeyer on the followup ticket.
Either one or two: one for your followup issues, maybe a separate one to fix the doctest? |
comment:39
Filed #28320 |
comment:40
Follow up: #29022 |
comment:41
and #25486 |
The sage-env script has never been particularly useful in distributions, and has actually been more of a nuisance: it needs to be heavily patched or even replaced with a custom one.
After #25786 (which removes SAGE_DOC_SRC usage at runtime) the only use for it that I can think of is setting DOT_SAGE. This patch allows to completely do away with this script, by setting a fallback for DOT_SAGE in the sage executable.
Depends on #25786
CC: @saraedum @isuruf @kiwifb @timokau
Component: distribution
Author: Antonio Rojas
Branch/Commit: u/arojas/allow_sage_to_run_in_the_absence_of_sage_env @
83a6cec
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/28225
The text was updated successfully, but these errors were encountered: