9.3 build: suppress "do you want to install" questions

25 views
Skip to first unread message

Harald Schilly

unread,
May 11, 2021, 8:32:33 AM5/11/21
to sage-devel
I'm trying to build 9.3 for CoCalc. Well, this time again after 9.1,9.2 , there are these "Are you sure you want to continue [Y/n]" questions for optional packages. I'm also building with two threads at once. So, what seems to happen is that on thread stops and asks this question, while the other one continues. Then, later, somehow this all stalls and waits forever.

1. I would expect that such a question blocks everything and doesn't essentially vanish – or, if there is a parallel build, just warn the user about it and don't wait for it, or ask at the very beginning about this.

2. Is there an option to automatically accept all such questions? I tried to pipe `yes` or something similar, but it didn't work.

Example output I saw just now:

spkg-install' '/ext/sage/sage-9.3/logs/pkgs/sagelib-9.3.log'                                                                           
sage-logger -p 'SAGE_CHECK=no sage-spkg   awali-1.0.2-190218' '/ext/sage/sage-9.3/logs/pkgs/awali-1.0.2-190218.log'                    
=========================== WARNING ===========================                                                                        
You are about to download and install the experimental package                                                                         
awali-1.0.2-190218.  This probably won't work at all for you! There                                                                    
is no guarantee that it will build correctly, or behave as                                                                             
expected. Use at your own risk!                                                                                                        
===============================================================                                                                        
Are you sure you want to continue [Y/n]? [sagelib-9.3] Discovering Python/Cython source code....                                       
[sagelib-9.3] distributions = ['', 'sage-mcqd', 'sage-bliss', 'sage-coxeter3', 'sage-meataxe']                                         
[sagelib-9.3] Discovered Python/Cython sources, time: 1.73 seconds.                                                                    
[sagelib-9.3] running build                                                                                                            
[...]

-- Harald

Vincent Delecroix

unread,
May 11, 2021, 8:39:56 AM5/11/21
to sage-...@googlegroups.com
$ sage -advanced

says

"""
Package handling:

--package [args] -- call the package manager with given arguments.
Run without arguments for help.
--experimental -- list all experimental packages that can be
installed
-i [opts] [pkgs] -- install the given Sage packages. Options:
-c -- run the packages' test suites,
overriding the settings of
SAGE_CHECK and SAGE_CHECK_PACKAGES
-d -- only download, do not install packages
-f -- force build: install the packages even
if they are already installed
-s -- do not delete the temporary build
directories
after a successful build
-y -- reply yes to prompts about experimental
and old-style packages; warning: there
is no guarantee that these packages will
build correctly; use at your own risk
-n -- reply no to prompts about experimental
and old-style packages
"""

So -i -y should work.

Vincent

Harald Schilly

unread,
May 11, 2021, 9:19:27 AM5/11/21
to sage-...@googlegroups.com
Ok, yes, that's the sage install command. I should have added that I'm
one step earlier. I did "./configure ... {--enable-XYZ=yes|no about 90
times}" and then make.

Or is there also some configuration switch I did miss?!

Dima Pasechnik

unread,
May 11, 2021, 9:24:52 AM5/11/21
to sage-devel
--enable-experimental-packages

hopefully does the trick

>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAGG4CB7FWEfGiXKqcvZEmODx1unXHWLtEuob_tywD1trG%3DyBUA%40mail.gmail.com.

Harald Schilly

unread,
May 11, 2021, 9:57:43 AM5/11/21
to sage-...@googlegroups.com
ok, thank you
> You received this message because you are subscribed to a topic in the Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-devel/Riu6eulB41k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq0W4AEBZ4RYV4WLPykLpxxzs_oXseSztjHW%3DzWFnf%2BAjQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages