-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
spkg/bin/sage: do not change directory #13459
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Attachment: 13459_no_cd.patch.gz |
comment:3
There is a problem with
when the current directory is |
comment:5
Why are there still some "cd"s in spkg/bin/sage? At least some of them (sync-build, bdist, upgrade) don't look like they're needed. I don't know about the patchbot. |
comment:6
Replying to @jhpalmieri:
I wanted to err on the safe side. When unsure, I put the |
comment:7
Can you explain the change in sage-ipython? I don't see any lines corresponding to |
comment:8
Replying to @jhpalmieri:
When running Sage through IPython (but not through plain Python when running a script for example), the current working directory is always added to
the current working directory will be checked first for the existence of a "sage" module. If the current working directory happens to be So we avoid this problem by first fixing |
Attachment: 13459_no_cd_scripts.patch.gz |
comment:9
I just realized that there is no need to change |
Reviewer: John Palmieri |
comment:10
Okay, this looks pretty good to me. I might prefer some more comments in spkg/bin/sage, for example pointing out that sage-bdist needs to be run from SAGE_ROOT. (I'm not actually sure that it does, actually: if run from somewhere else, it just creates the temporary directories in the current working directory, but maybe it will still work. I guess for the principle of least surprise, we shouldn't change the behavior of building in SAGE_ROOT/tmp/.) |
Merged: sage-5.4.rc0 |
Remove all unneeded "cd" statements from
spkg/bin/sage
.Apply:
Component: scripts
Author: Jeroen Demeyer
Reviewer: John Palmieri
Merged: sage-5.4.rc0
Issue created by migration from https://trac.sagemath.org/ticket/13459
The text was updated successfully, but these errors were encountered: