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

Support a few more Cython system packages #36548

Merged
merged 14 commits into from
Nov 5, 2023

Conversation

orlitzky
Copy link
Contributor

@orlitzky orlitzky commented Oct 26, 2023

The usual stuff, for:

  • cypari2
  • cysignals
  • fpylll
  • memory_allocator
  • pplpy
  • primecountpy

Dependencies

Copy link
Member

@dimpase dimpase left a comment

Choose a reason for hiding this comment

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

looks good.

please put the correct tags up.

@@ -0,0 +1,5 @@
SAGE_SPKG_CONFIGURE([primecountpy], [
SAGE_SPKG_DEPCHECK([cysignals primecount], [
Copy link
Member

Choose a reason for hiding this comment

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

Not necessarily for this PR, but a possible next refinement:
primecount is only used via primecountpy; so instead of listing it in SAGE_SPKG_DEPCHECK, we could mark primecount as "not required" when primecountpy is available -- like we do for virtualenv as the dependency of only tox.

Copy link
Member

Choose a reason for hiding this comment

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

how do we do this? where is this "not required" thing should be?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can see an example in e.g. filelock/spkg-configure.m4. In theory we could do this for any package but it requires hard-coding the entire dependency tree in m4 and even I am not in a rush to do that. This is a relatively easy case though.

@orlitzky
Copy link
Contributor Author

please put the correct tags up.

?? what did I miss?

@mkoeppe
Copy link
Member

mkoeppe commented Oct 28, 2023

Best to rebase it on top of #36482 for the fpylll version

@mkoeppe
Copy link
Member

mkoeppe commented Oct 28, 2023

The changes look straightforward, but it's not quite clear what the standard of review should be for this experimental feature because so many tests are failing. In addition to what I reported in #36536, I see:

@orlitzky
Copy link
Contributor Author

Best to rebase it on top of #36482 for the fpylll version

Done

@orlitzky
Copy link
Contributor Author

  • gentoo-python3.11 - many doctest failures from DeprecationWarning: pkg_resources is deprecated as an API.

Does the container need an update? That's my configuration and I don't see any of those failures. I'm sure Francois would have heard about it too.

@orlitzky
Copy link
Contributor Author

The changes look straightforward, but it's not quite clear what the standard of review should be for this experimental feature because so many tests are failing.

These are real bugs being exposed in our build system / metadata, but if we can't guess the cause from the logs and if no one has these old distros to poke around on, then it shouldn't be a blocker IMO.

This may still improve somewhat when we announce the feature. I've been putting it off until I was done writing spkg-configure.m4s, and this is one of the last sets. (IPython and friends remain blocked on prompt_toolkit, #35251 (comment)). But still, if we announce it and if no one cares about e.g. Fedora 33, then no one cares about Fedora 33...

@mkoeppe
Copy link
Member

mkoeppe commented Oct 28, 2023

if no one has these old distros to poke around on

One does not need to "have these old distros". This all runs on Docker.

@github-actions
Copy link

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

Copy link
Member

@mkoeppe mkoeppe left a comment

Choose a reason for hiding this comment

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

I guess this is fine, as the feature is marked experimental.

vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 1, 2023
    
The usual stuff, for:

- cypari2
- cysignals
- fpylll
- memory_allocator
- pplpy
- primecountpy

### Dependencies

- sagemath#36482
    
URL: sagemath#36548
Reported by: Michael Orlitzky
Reviewer(s): Dima Pasechnik, Matthias Köppe, Michael Orlitzky
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 2, 2023
    
The usual stuff, for:

- cypari2
- cysignals
- fpylll
- memory_allocator
- pplpy
- primecountpy

### Dependencies

- sagemath#36482
    
URL: sagemath#36548
Reported by: Michael Orlitzky
Reviewer(s): Dima Pasechnik, Matthias Köppe, Michael Orlitzky
@vbraun vbraun merged commit 8c93da9 into sagemath:develop Nov 5, 2023
40 of 53 checks passed
@mkoeppe mkoeppe added this to the sage-10.2 milestone Nov 5, 2023
@orlitzky orlitzky deleted the some-more-system-cython-pkgs branch January 24, 2024 14:45
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.

5 participants