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

Fix CremonaDatabase constructor #39179

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kwankyu
Copy link
Collaborator

@kwankyu kwankyu commented Dec 21, 2024

Fixes #39072

Alternative to #39116.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@kwankyu kwankyu marked this pull request as ready for review December 21, 2024 12:53
Copy link

github-actions bot commented Dec 21, 2024

Documentation preview for this PR (built with commit 011e07f; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

sage: C = CremonaDatabase(mini=False) # optional - !database_cremona_ellcurve
Traceback (most recent call last):
...
ValueError: full Cremona database is not available; run "sage -i database_cremona_ellcurve" to install it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically sage -i doesn't work with meson https://doc-release--sagemath.netlify.app/html/en/installation/meson

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the standard way to install optional packages?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not, what is the standard way?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know either (as in I know it works with the monolithic build system but I heard it supposedly doesn't work with the case it's built from meson)? Maybe ask @tobiasdiez

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should regard meson build as an alternative experimental build system...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sage -i doesn't work with neither conda nor meson, and also not on some other systems. So it would indeed be nice to phrase this warning in a way to make sense across all of these supported ways to install sage. Perhaps just link to https://doc.sagemath.org/html/en/reference/spkg/database_cremona_ellcurve.html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps just link to https://doc.sagemath.org/html/en/reference/spkg/database_cremona_ellcurve.html

But that is even less descriptive. It explains neither conda install nor sage -i, and users may not know how to install optional package in the first place.

Can we just somehow make sage -i redirect to conda install?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It explains neither conda install nor sage -i

The first is because there is no package to install the cremona db via conda. The latter is indeed a "bug".

Can we just somehow make sage -i redirect to conda install?

On arch, you would need to install https://aur.archlinux.org/packages/sage-data-cremona_ellcurve... (also missing btw from the docs page). I think such an automatic install would open a can of worms.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rephrased the message as @culler wished.

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

Successfully merging this pull request may close these issues.

The CremonaDatabase class does not work correctly.
3 participants