-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Implement an install script for newcomers #33765
Comments
comment:1
I think what is described is already too complex. Just a script that does the conda installation would be good enough, I think. |
comment:2
And it should definitely not be called |
comment:3
Replying to @mkoeppe:
My intention was to have the intervention on the users system as minimally invasive as possible. I don't know how much conda changes the behavior of the system but at least it changes it visually (prompt) what might be a matter of irritation to the user.
Agreed! At least that would make things much easier for a start. If users will accept it then it's fine!
I see! What would you suggest? Maybe |
Dependencies: #33740 |
I created installers for the sage-flatsurf project. They install SageMath with a JupyterLab setup from conda-forge + the sage-flatsurf package. The installers can be found on the release page of sage-flatsurf and I would appreciate feedback: https://github.com/flatsurf/sage-flatsurf/releases/tag/0.5.2 Turning these into SageMath installers (without sage-flatsurf) is of course a trivial change if you think that would be a useful addition. |
@soehms this is different from what you describe in the issue. There is no need to install conda/mamba and make actual changes to the system on the Unixes anymore now. On Windows, some system changes are necessary to make WSL functional. |
Thanks for the info! That's good news.
I tried your Windows installer on an old Sony VAIO with a 2nd generation i5, on which I recently installed Windows 11 Pro (after replacing the HDD with an SSD). Here are my observations: On this machine I had already enabled WSL 2 and installed Ubuntu 22.04.3 LTS, so I was a bit surprised when I was prompted to update WSL. Unfortunately, I didn't notice that my WiFi extender was unplugged. Probably this caused the installation to run very slowly. A couple of times the Powershell terminal where the installer was running suddenly closed (possibly also due to bad WiFi). But after restarting the installation, it continued correctly from where it stopped. After the installation was complete, all three icons were fully functional. Disk space consumption was about 9 GB. Is this to be expected?
More than 1 GB of it is stored under I then tried to uninstall it, first using the Windows software uninstaller. A message appeared (unfortunately I couldn't take a screenshot of it) telling me to uninstall the virtual machine first to avoid leaving data on the disk. However, there was no way to cancel the uninstall. So after that
I think anything that makes installing Sage more convenient is a useful addition! |
I haven't worked on what I described in the header of this issue, but I have started working on a tool to make accessing our Docker images more convenient for Windows users. I think it will take me a few more weeks to get a preliminary version ready. As soon as it's ready, I'll post it here. |
I have now published this in a separate repository. |
Yes, that's roughly what I would expect.
I believe that this is hard or symlinked to other places. It probably does not save any space to delete
Oh, that's very unfortunate. Windows installers are quite a bit of black magic.
Great. I'll try to get to that soonish. |
@saraedum Did you notice this sage-devel thread about this subject? Maybe the approach that @kwankyu is trying is similar to yours. |
As suggested in this sage-devel-thread we need to simplify the installation for newcomers who are not familiar with complicated install procedures. Since there is a satisfactory solution for Mac users and Windows users are advised to use WSL we may assume that most of them will try to install Sage on Ubuntu or Debian systems. The aim is that the user can install Sage copying one line into a bash terminal, say
curl -I -O https://github.com/sagemath/sage-prod/tree/develop/src/bin/easy_install_sage.sh && easy_install_sage.sh
Suggestion: The script should do the following:
apt
fromhttps://repology.org/api/v1/projects/sagemath
. If this is the current version, ask the user if he has root access. If yes, do the installation usingapt
and exit.apt
and exit.Now and again this script could be extended to other, more exotic Linux distributions, as well. I would not include the installation from source here, since that should be done by poeple who know what they do.
Depends on #33740
Component: scripts
Issue created by migration from https://trac.sagemath.org/ticket/33765
The text was updated successfully, but these errors were encountered: