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
Reimplement "sage -p SPKG" as "cd $SAGE_ROOT && make SPKG-no-deps" #30649
Comments
Dependencies: #30657 |
Commit: |
Author: Matthias Koeppe |
New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:6
I think that this does not behave according to the documentation: "Options are the same as for the -i command." For example |
comment:7
You are right, this needs more thought |
comment:8
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:9
Setting a new milestone for this ticket based on a cursory review. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:29
Yes, I'm in favor of deleting this nonsensical test |
Changed author from Matthias Koeppe to Matthias Koeppe, John Palmieri |
comment:34
Any ideas on what else needs to be done with this? New commits:
|
comment:35
I think it is ready |
comment:36
The change from comment:30 and comment:31 seems to have been lost, and I am getting an error when I try to push. I don't want to mess up the rest of the branch, so it might be better if you do it: diff --git a/src/sage/tests/cmdline.py b/src/sage/tests/cmdline.py
index 681ff703e25..fccba3f12fb 100644
--- a/src/sage/tests/cmdline.py
+++ b/src/sage/tests/cmdline.py
@@ -210,9 +210,7 @@ def test_executable(args, input="", timeout=100.0, pydebug_ignore_warnings=False
sage: ret # optional - sage_spkg
0
- Test ``sage --info [packages]`` and the equivalent
- ``sage -p --info --info [packages]`` (the doubling of ``--info``
- is intentional, that option should be idempotent)::
+ Test ``sage --info [packages]``::
sage: out, err, ret = test_executable(["sage", "--info", "sqlite"]) # optional - sage_spkg
sage: print(out) # optional - sage_spkg
@@ -225,17 +223,6 @@ def test_executable(args, input="", timeout=100.0, pydebug_ignore_warnings=False
sage: ret # optional - sage_spkg
0
- sage: out, err, ret = test_executable(["sage", "-p", "--info", "--info", "sqlite"]) # optional - sage_spkg
- sage: print(out) # optional - sage_spkg
- sqlite...
- SQLite is a software library that implements a self-contained,
- serverless, zero-configuration, transactional SQL database engine.
- ...
- sage: err # optional - sage_spkg
- ''
- sage: ret # optional - sage_spkg
- 0
-
Test ``sage-run`` on a Python file, both with an absolute and with a relative path::
sage: dir = tmp_dir(); name = 'python_test_file.py' |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:38
Sorry for dropping this! Here it is |
comment:39
I propose the following two changes (the first one because this is already in diff --git a/build/bin/sage-site b/build/bin/sage-site
index 78848c389e..f7164503b7 100755
--- a/build/bin/sage-site
+++ b/build/bin/sage-site
@@ -129,7 +129,7 @@ if [ "$1" = '-standard' -o "$1" = "--standard" ]; then
fi
if [ "$1" = '-p' ]; then
- # If there are no further arguments, display usage help (via an option handled by sage-site)
+ # If there are no further arguments, display usage help
if [ $# -eq 1 ]; then
set -- --info
else
diff --git a/build/bin/sage-spkg b/build/bin/sage-spkg
index 1af55f6671..4478bc7f2d 100755
--- a/build/bin/sage-spkg
+++ b/build/bin/sage-spkg
@@ -99,7 +99,7 @@ Options:
-y: automatically reply "y" for all prompts regarding
experimental and old-style packages; warning: there
is no guarantee that these packages will build correctly;
- use at your own risk"
+ use at your own risk
-n: automatically reply "n" for all prompts regarding
experimental and old-style packages
-o: allow fetching the package from its upstream URL Also for a future ticket: should |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:41
Replying to @jhpalmieri:
I suppose |
comment:42
And it's not clear if But as you say, that would be a future ticket. |
Reviewer: ..., Matthias Koeppe |
Changed reviewer from ..., Matthias Koeppe to John Palmieri, Matthias Koeppe |
comment:44
Looks good to me. It has some advantages that I didn't expect. Without this branch:
whereas with this branch, |
comment:45
Thanks! |
This option installs a package without its dependencies, enabling experiments by experienced developers.
After #29013 (Support installation of Python packages into separate venvs depending on the python version),
sage-spkg
requires an installation-tree argument. As a result, currentlysage -p
is broken, as reported in #32751.We remove this direct use of
sage-spkg
.Making this change also removes the last use of
SAGE_LOGS
fromsrc/
Since this now goes through a
make
target instead of usingsage-spkg
directly, after switching to a branch that adds a package, developers may need to manually invokebootstrap
andconfigure
before using this option.Depends on #33127
CC: @jhpalmieri @orlitzky @kliem @vbraun
Component: build
Author: Matthias Koeppe, John Palmieri
Branch/Commit:
9ed0d60
Reviewer: John Palmieri, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30649
The text was updated successfully, but these errors were encountered: