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

Upgrade NumPy to 1.20.3, SciPy 1.6.3, networkx 2.5.1 #31008

Closed
mkoeppe opened this issue Dec 5, 2020 · 28 comments
Closed

Upgrade NumPy to 1.20.3, SciPy 1.6.3, networkx 2.5.1 #31008

mkoeppe opened this issue Dec 5, 2020 · 28 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Dec 5, 2020

The upgrade to 1.20.x https://numpy.org/devdocs/release/1.20.0-notes.html require dropping support for Python 3.6

Depends on #31860

CC: @slel @kiwifb

Component: packages: standard

Author: Antonio Rojas, Matthias Koeppe

Branch/Commit: 02f6848

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/31008

@mkoeppe mkoeppe added this to the sage-9.4 milestone Dec 5, 2020
@antonio-rojas
Copy link
Contributor

@antonio-rojas
Copy link
Contributor

Author: Antonio Rojas

@antonio-rojas
Copy link
Contributor

comment:2

The type aliases numpy.int, numpy.complex and numpy.float are now deprecated


New commits:

55fb295Don't use deprecated numpy type aliases
022d34aUpdate numpy to 1.20.1

@antonio-rojas
Copy link
Contributor

Commit: 022d34a

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Feb 8, 2021

comment:3

Assuming the fixes to src/sage also work for 1.19.x, I'd suggest to put them on a separate ticket so we can get them in Sage 9.3. The upgrade itself will have to wait as it requires dropping python3.6 support

@antonio-rojas
Copy link
Contributor

Changed dependencies from #30551 to #30551 #31364

@antonio-rojas
Copy link
Contributor

comment:4

Done, #31364

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2021

Last 10 new commits:

66c2987build/pkgs/{sage_sws2rst,sage_docbuild}/install-requires.txt: New
7f8ec6cbuild/pkgs/sagelib/src/tox.ini: Add factor sitepackages
0283da5build/make/Makefile.in: Add wheel, setuptools_wheel to PYTHON_TOOLCHAIN to make sure that PEP 517 packages have a complete build system
f720722build/pkgs/sagelib/src/tox.ini: Add factor nobuildisolation
c451b31src/setup.cfg.m4 (install_requires): Add sage_conf
6700223Merge tag '9.3.rc0' into t/30913/sagelib__add_setup_cfg__install_requires_
04da2c6build/pkgs/ipywidgets: Patch out declaring install-requires of nbformat and jupyterlab-widgets
815c944Merge #30913
b06731cRemove Python 3.6 support from metadata and documentation
57338c1Update numpy to 1.20.2, scipy to 1.6.2, networkx to 2.5.1

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2021

Changed dependencies from #30551 #31364 to #30551

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2021

Changed commit from 022d34a to 57338c1

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 19, 2021

Changed author from Antonio Rojas to Antonio Rojas, Matthias Koeppe

@mkoeppe mkoeppe changed the title Upgrade NumPy to 1.20.x -- needs python >= 3.7 Upgrade NumPy to 1.20.x, SciPy 1.6.2, networkx 2.5.1 -- needs python >= 3.7 Apr 19, 2021
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 12, 2021

Changed commit from 57338c1 to 02f6848

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 12, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

ac49be0build/pkgs/numpy: Update to 1.20.3
02f6848build/pkgs/scipy: Update to 1.6.3

@mkoeppe mkoeppe changed the title Upgrade NumPy to 1.20.x, SciPy 1.6.2, networkx 2.5.1 -- needs python >= 3.7 Upgrade NumPy to 1.20.3, SciPy 1.6.3, networkx 2.5.1 May 12, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented May 25, 2021

@dimpase
Copy link
Member

dimpase commented Jun 3, 2021

comment:10

all GH tests failed here, restart them, maybe?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

comment:11

On this GH Actions run, I merged many tickets. All failures are of the form

  [sagelib-9.3]   building 'sage.rings.padics.padic_relaxed_element' extension
  [sagelib-9.3]   Executing 1 command (using 1 thread)
  [sagelib-9.3]   [1/1] gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -O2 -g -march=native -fPIC -I./sage/libs/flint -I./sage/cpython -Isage/libs/flint -I/sage/build/pkgs/sagelib/src -I/usr/include/python3.8 -I/sage/local/lib/python3.8/site-packages/numpy/core/include -Ibuild/cythonized -I/sage/local/include -I/usr/include/python3.8 -c build/cythonized/sage/rings/padics/padic_relaxed_element.c -o build/temp.linux-x86_64-3.8/build/cythonized/sage/rings/padics/padic_relaxed_element.o -fno-strict-aliasing -DCYTHON_CLINE_IN_TRACEBACK=1 -std=c99
  [sagelib-9.3]   build/cythonized/sage/rings/padics/padic_relaxed_element.c:5174:10: fatal error: sage/libs/linkages/padics/relaxed/flint_helper.c: No such file or directory
  [sagelib-9.3]    5174 | #include "sage/libs/linkages/padics/relaxed/flint_helper.c"
  [sagelib-9.3]         |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  [sagelib-9.3]   compilation terminated.

Not sure which one caused this

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

Changed dependencies from #30551 to #31860

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

comment:14

Already 9.4.beta0 is broken with the same error - see #31903

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 3, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 4, 2021

comment:17

Now there are useful reports from GH Actions.

@dimpase
Copy link
Member

dimpase commented Jun 7, 2021

Changed reviewer from https://github.com/mkoeppe/sage/actions/runs/904504331 to Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Jun 7, 2021

comment:18

lgtm

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Jun 7, 2021

comment:19

Thanks!

@vbraun
Copy link
Member

vbraun commented Jun 19, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants