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

sage.libs.pari, sage.rings.real_mpfr: Modularization fixes #36645

Merged
merged 15 commits into from
Dec 10, 2023

Conversation

mkoeppe
Copy link
Member

@mkoeppe mkoeppe commented Nov 4, 2023

Main change: Eliminate the compile-time dependency of sage.rings.real_mpfr on PARI.

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • 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 accordingly.

⌛ Dependencies

@mkoeppe mkoeppe self-assigned this Nov 4, 2023
@mkoeppe mkoeppe changed the title sage.libs.pari: Modularization fixes sage.libs.pari, sage.rings.real_mpfr: Modularization fixes Nov 4, 2023
Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

LGTM.

@mkoeppe
Copy link
Member Author

mkoeppe commented Nov 9, 2023

Thank you!

@vbraun
Copy link
Member

vbraun commented Dec 3, 2023

Merge conflict

Copy link

github-actions bot commented Dec 6, 2023

Documentation preview for this PR (built with commit 241ac56; changes) is ready! 🎉

@vbraun vbraun merged commit 37a2501 into sagemath:develop Dec 10, 2023
14 of 18 checks passed
@mkoeppe mkoeppe added this to the sage-10.3 milestone Dec 10, 2023
@tornaria
Copy link
Contributor

Something weird is happening after this.

The file src/sage/libs/pari/convert_sage_matrix.pyx is not being compiled, and thus I get ModuleNotFoundError: No module named 'sage.libs.pari.convert_sage_matrix'.

I cleaned up everything to start from scratch in case this was something, but still same failure.

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 11, 2023

Hmm.... it has a sage_setup: distribution line by mistake, try deleting that

@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 11, 2023

Which setup.py do you use?

@mkoeppe mkoeppe deleted the sage_libs_pari_modularization branch December 11, 2023 04:04
@mkoeppe
Copy link
Member Author

mkoeppe commented Dec 11, 2023

I'll open a PR that fixes this.

@tornaria
Copy link
Contributor

Which setup.py do you use?

The one in pkgs/sagemath-standard, been doing that for a long time.

@tornaria
Copy link
Contributor

Hmm.... it has a sage_setup: distribution line by mistake, try deleting that

Yes, that works.

vbraun pushed a commit to vbraun/sage that referenced this pull request Dec 13, 2023
…`sage_setup: distribution`

    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

It was added by mistake in sagemath#36645. Thanks for reporting @tornaria

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [ ] The title is concise, informative, and self-explanatory.
- [ ] 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 accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36859
Reported by: Matthias Köppe
Reviewer(s):
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.

None yet

4 participants