Skip to content

Replace 'sage-python' with 'python3' in various scripts for Meson #40490

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

Merged
merged 2 commits into from
Aug 2, 2025

Conversation

tobiasdiez
Copy link
Contributor

@tobiasdiez tobiasdiez commented Jul 27, 2025

In a pure meson build there is no sage-python, so scripts declaring using sage-python are not working in this context. To remedy this, simply python3 is used instead.

📝 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

@tobiasdiez tobiasdiez requested a review from antonio-rojas July 27, 2025 20:12
@antonio-rojas
Copy link
Contributor

What's the reason for doing it only for a few scripts? Why not just drop it completely?

@tobiasdiez
Copy link
Contributor Author

What's the reason for doing it only for a few scripts?

Good question ;-)

Why not just drop it completely?

Done now.

Copy link
Contributor

@antonio-rojas antonio-rojas left a comment

Choose a reason for hiding this comment

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

LGTM, but it would be good to have an opinion from someone who actively uses sage-the-distro

@tobiasdiez tobiasdiez requested a review from dimpase July 29, 2025 17:00
@dimpase
Copy link
Member

dimpase commented Jul 29, 2025

while it might be something that might break for Python built by Sage, I'll consider this a long overdue step towards removing the latter antique feature.

@vbraun vbraun merged commit 24e9c9b into sagemath:develop Aug 2, 2025
20 of 25 checks passed
vbraun pushed a commit to vbraun/sage that referenced this pull request Aug 9, 2025
sagemathgh-40526: Delete one appearance of sage-python
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

In sagemath#40490, `sage-python` has been replaced by `python3` and one
`bin/sage-python` has been erased, while other one is still there, erase
it also.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [X] The title is concise and informative.
- [X] 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

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40526
Reported by: Enrique Manuel Artal Bartolo
Reviewer(s): Dima Pasechnik
@vbraun
Copy link
Member

vbraun commented Aug 16, 2025

This causes docbuild issues, see #40605

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

Successfully merging this pull request may close these issues.

5 participants