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 more doctests in meson_editable install #39494

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Feb 11, 2025

Fix more bugs uncovered by #39369 .

Add a feature flag meson_editable, and put doctests behind this flag accordingly.

📝 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

@user202729 user202729 marked this pull request as draft February 11, 2025 17:14
Copy link

github-actions bot commented Feb 11, 2025

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

@user202729 user202729 force-pushed the fix-more-doctests-meson-editable branch from 40c0b19 to 3dc5ce3 Compare February 12, 2025 02:47
@user202729 user202729 marked this pull request as ready for review February 12, 2025 02:47
Copy link
Contributor

@tobiasdiez tobiasdiez left a comment

Choose a reason for hiding this comment

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

Thanks!

@user202729
Copy link
Contributor Author

user202729 commented Feb 20, 2025

That said, do you have any better way than using type(sage.__loader__).__module__ == '_sagemath_editable_loader' to check for the existence of the feature? Given the underscore it is quite obvious that it's meant to be an internal name.

@tobiasdiez
Copy link
Contributor

That said, do you have any better way than using type(sage.__loader__).__module__ == '_sagemath_editable_loader' to check for the existence of the feature? Given the underscore it is quite obvious that it's meant to be an internal name.

No not really. But in my opinion it's a good test since the loader is the most obvious indication that one is using meson in editable mode.

@vbraun vbraun merged commit 98eec5d into sagemath:develop Feb 21, 2025
17 of 23 checks passed
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.

3 participants