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

build/pkgs/cython: Update to 3.0.10 #37584

Merged
merged 1 commit into from
May 12, 2024
Merged

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Mar 10, 2024

📝 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 accordingly.

⌛ Dependencies

@kiwifb
Copy link
Member

kiwifb commented Mar 13, 2024

Loads of stuff like

    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:13:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:24:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:26:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/coerce_dict.pxd:22:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/coerce_dict.pxd:48:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:26:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:27:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:28:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:29:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:40:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:41:35: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:42:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:45:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:46:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:47:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:48:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:52:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:53:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:56:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:58:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:62:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:63:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:64:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:65:34: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:66:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:6:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:146:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:147:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:152:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:154:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:156:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:158:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:159:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:161:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:162:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:163:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:164:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:166:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:167:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:168:17: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:169:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:170:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:171:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:173:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:174:17: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:175:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:186:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:187:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:188:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:191:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:193:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:201:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:204:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:210:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:211:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:212:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:227:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:228:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:231:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:251:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:252:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:254:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:265:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:266:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:267:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:11:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:12:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:15:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:16:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:26:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:14:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:16:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:18:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:19:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:20:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:21:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:22:13: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:23:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:24:13: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:28:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:29:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:30:45: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:37:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:41:37: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:6:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:11:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:12:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:13:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:14:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:16:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:17:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:19:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:11:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:12:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:14:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:21:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:10:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:13:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:14:41: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:16:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:17:39: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:18:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:19:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:20:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:26:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:28:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:29:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:30:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:31:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:32:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:33:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:37:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:39:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:40:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:44:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:45:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:46:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:51:40: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:54:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:59:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:60:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:61:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:16:39: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:17:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:18:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:19:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/libs/flint/fmpq_poly_sage.pxd:21:36: noexcept clause is ignored for function returning Python object

in various doctests.

@tornaria
Copy link
Contributor

Loads of stuff like

    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:13:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:24:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/category_object.pxd:26:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/coerce_dict.pxd:22:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/coerce_dict.pxd:48:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:26:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:27:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:28:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:29:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:40:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:41:35: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:42:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:45:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:46:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:47:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:48:27: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:52:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:53:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:56:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:58:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:62:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:63:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:64:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:65:34: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/parent.pxd:66:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:6:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:146:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:147:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:152:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:154:21: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:156:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:158:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:159:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:161:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:162:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:163:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:164:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:166:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:167:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:168:17: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:169:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:170:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:171:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:173:14: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:174:17: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:175:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:186:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:187:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:188:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:191:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:193:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:201:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:204:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:210:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:211:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:212:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:227:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:228:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:231:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:251:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:252:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:254:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:265:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:266:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/structure/element.pxd:267:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:11:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:12:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:15:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:16:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/categories/map.pxd:26:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:14:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:16:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:18:23: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:19:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:20:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:21:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:22:13: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:23:12: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:24:13: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:28:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:29:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:30:45: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:37:25: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/integer.pxd:41:37: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:6:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:11:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:12:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:13:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:14:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:16:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:17:16: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/rational.pxd:19:18: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:11:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:12:28: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:14:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_compiled.pxd:21:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:10:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:13:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:14:41: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:16:30: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:17:39: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:18:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:19:22: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:20:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:26:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:28:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:29:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:30:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:31:32: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:32:33: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:33:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:37:26: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:39:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:40:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:44:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:45:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:46:20: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:51:40: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:54:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:59:19: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:60:36: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_element.pxd:61:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:16:39: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:17:15: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:18:24: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/rings/polynomial/polynomial_rational_flint.pxd:19:29: noexcept clause is ignored for function returning Python object
    warning: /usr/lib/python3.11/site-packages/sage/libs/flint/fmpq_poly_sage.pxd:21:36: noexcept clause is ignored for function returning Python object

in various doctests.

Yes, this is what causes #37560 and is worked around (not fixed) in #37583.

I have a patch almost ready that fixes the issues for good, as in I can build sagemath with 0 warnings. This needs:

Note that the cython patch I cited above is necessary to get a warning free compilation. With stock 3.0.9, we have ~40k lines that give one warning when you add noexcept and a different warning when you remove it.

With all the above patches there are just 136 cython warnings left in total, of which 108 are IF deprecation.

@tornaria
Copy link
Contributor

tornaria commented Mar 25, 2024

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 25, 2024

Do you know if this cython fix is being backported to 3.0.10?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 25, 2024

I've added these items to "Dependencies" above.

@tornaria
Copy link
Contributor

Do you know if this cython fix is being backported to 3.0.10?

Yes, the commit I linked to is the backported one in the 3.0.x branch (already merged). No idea when they'll release 3.0.10.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 25, 2024

OK, thanks. I'll put it here on the branch.

@mkoeppe mkoeppe changed the title build/pkgs/cython: Update to 3.0.9 build/pkgs/cython: Update to 3.0.9+ Mar 25, 2024
@tornaria
Copy link
Contributor

Also note that for now nothing changes behaviour, so these are not really dependencies but "nice to have".

The only reason having 3.0.9+patch is nice is because it makes #37667 look better. In the sense that it shows that the noexept is there for the lines that need it and no more.

Note that there is no change of behaviour. All of this may seem a bit silly: why bother with the noexcept lines if cython is able to infer them right? Well, that's only because we are in legacy_implicit_noexcept mode and I think they want to remove this mode in cython 3.1 and turn some of the warnings into errors.

I think a good strategy for us is to make sure we fix everything, and once we are sure to build the whole sagemath without a single warning related to noexcept, we can try to disable the legacy mode.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 25, 2024

Yes, I agree that this is a good strategy.

@tornaria
Copy link
Contributor

tornaria commented Apr 7, 2024

cython 3.0.10 is released, includes the noexcept patch, and works fine.

fwiw, I'm on cypari 2.1.5 and memory_allocator 0.1.4 without any trouble at all.

@mkoeppe mkoeppe changed the title build/pkgs/cython: Update to 3.0.9+ build/pkgs/cython: Update to 3.0.10 Apr 7, 2024
Copy link

github-actions bot commented Apr 7, 2024

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

vbraun pushed a commit to vbraun/sage that referenced this pull request Apr 11, 2024
    
<!-- ^ 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". -->

These upgrades are for
- sagemath#37584

### 📝 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.
- [x] 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. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37665
Reported by: Matthias Köppe
Reviewer(s):
@mkoeppe mkoeppe requested a review from vbraun May 5, 2024 00:58
@vbraun vbraun mentioned this pull request May 5, 2024
2 tasks
vbraun pushed a commit to vbraun/sage that referenced this pull request May 5, 2024
<!-- ^ 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". -->

### 📝 Checklist

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

- [ ] 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 accordingly.

### ⌛ Dependencies

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

- Depends on sagemath#37583 (merged here)
- Depends on sagemath#37665 (merged here)
- Depends on sagemath#37667 (merged here)
- Depends on cython/cython@4e9f7307312881111b6
f56279a83812a2309cd16 (see
cython/cython#6087 (comment))
(carried here as a patch)
- Depends on sagemath#37646 (merged here for convenience)

URL: sagemath#37584
Reported by: Matthias Köppe
Reviewer(s):
@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 5, 2024

Thanks, Volker.

vbraun pushed a commit to vbraun/sage that referenced this pull request May 9, 2024
    
<!-- ^ 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". -->



### 📝 Checklist

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

- [ ] 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 accordingly.

### ⌛ Dependencies

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

- Depends on sagemath#37583 (merged here)
- Depends on sagemath#37665 (merged here)
- Depends on sagemath#37667 (merged here)
- Depends on cython/cython@4e9f7307312881111b6
f56279a83812a2309cd16 (see
cython/cython#6087 (comment))
(carried here as a patch)
- Depends on sagemath#37646 (merged here for convenience)
    
URL: sagemath#37584
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request May 11, 2024
    
<!-- ^ 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". -->



### 📝 Checklist

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

- [ ] 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 accordingly.

### ⌛ Dependencies

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

- Depends on sagemath#37583 (merged here)
- Depends on sagemath#37665 (merged here)
- Depends on sagemath#37667 (merged here)
- Depends on cython/cython@4e9f7307312881111b6
f56279a83812a2309cd16 (see
cython/cython#6087 (comment))
(carried here as a patch)
- Depends on sagemath#37646 (merged here for convenience)
    
URL: sagemath#37584
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request May 12, 2024
    
<!-- ^ 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". -->



### 📝 Checklist

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

- [ ] 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 accordingly.

### ⌛ Dependencies

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

- Depends on sagemath#37583 (merged here)
- Depends on sagemath#37665 (merged here)
- Depends on sagemath#37667 (merged here)
- Depends on cython/cython@4e9f7307312881111b6
f56279a83812a2309cd16 (see
cython/cython#6087 (comment))
(carried here as a patch)
- Depends on sagemath#37646 (merged here for convenience)
    
URL: sagemath#37584
Reported by: Matthias Köppe
Reviewer(s):
@vbraun vbraun merged commit f553794 into sagemath:develop May 12, 2024
15 of 36 checks passed
@mkoeppe mkoeppe added this to the sage-10.4 milestone May 12, 2024
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.

4 participants