Skip to content
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

Cannot rebuild sage #2

Open
mkoeppe opened this issue May 18, 2022 · 5 comments
Open

Cannot rebuild sage #2

mkoeppe opened this issue May 18, 2022 · 5 comments

Comments

@mkoeppe
Copy link

mkoeppe commented May 18, 2022

The Sage installation in computop/sage:9.5 has several issues that prevent rebuilding when changes are made to Sage.

I ran into this while setting up computop/sage as a VS Code devcontainer for Sage development, https://trac.sagemath.org/ticket/33671

The issues and workarounds for them are described in:
https://git.sagemath.org/sage.git/diff/.devcontainer/devcontainer-computop-sage.json?id=8ec5393e16da7b211d4ee060b1dc34dc0facae52

@NathanDunfield
Copy link
Member

Thanks for reporting this Matthias, but could you expand on what is wrong? I looked at the json file you linked to, but I didn't know that the computop/sage image supported rebuilding Sage at all and pari seems to work just fine for me. Our script for building Sage just goes with the defaults, so I'm not sure why rebuilding pari and nauty would fix anything.

@mkoeppe
Copy link
Author

mkoeppe commented May 31, 2022

I think after installing Sage, some of the following scripts in https://github.com/3-manifolds/sagedocker/tree/master/sage/scripts clobber parts of the Sage installation.

@NathanDunfield
Copy link
Member

Hmm, we do add some additional software to the $SAGE_LOCAL tree, mostly various topology Python packages, and also mess with the Jupyter(-Lab) config. So that I can debug, what's a specific command that results in an error?

@mkoeppe
Copy link
Author

mkoeppe commented May 31, 2022

I didn't know that the computop/sage image supported rebuilding Sage at all

True, what is in /sage is not sufficient to do any rebuilds. /sage/src has the complete sources but the top-level Makefile and configure script are missing and sage -b just fails with an unhelpful error.

The devcontainer script uses its own source tree mounted in the container and configures it to re-use the /sage/local installation prefix.

@culler
Copy link
Member

culler commented May 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants