Commit Graph

30 Commits

Author SHA1 Message Date
krant 96ee052fba numpy: update to 1.26.4
- Refresh patches

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-04-07 17:04:37 +03:00
Alexandru Ardelean a66e68e2bb numpy: bump to version 1.26.3
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2024-02-08 09:40:01 -08:00
Andy Syam fb2bf1c737 numpy: update to version 1.26.2
https://github.com/numpy/numpy/releases

NumPy 1.26.2 Release Notes
NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.

Signed-off-by: Andy Syam <privasisource@gmail.com>
2024-01-02 19:34:05 -08:00
Alexandru Ardelean 50e655df8b numpy: bump to version 1.25.2
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-09-09 11:30:07 +03:00
Alexandru Ardelean d6252bcb76 numpy: bump to version 1.25.1
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-16 22:09:55 +03:00
Alexandru Ardelean 8f176e30f3 numpy: bump version to 1.24.3
Need to also fix build for GCC 13 + musl.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2023-05-26 11:16:17 +03:00
Jeffery To 3cee44d888
numpy: Avoid build user config files
This stops numpy from reading .numpy-site.cfg in the build user's home
directory. The code actually tries to find both .numpy-site.cfg and
site.cfg in the user's home directory; this patch prevents both.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-11 02:46:57 +08:00
Jeffery To 5cafab68ff
numpy: Fix compilation when OpenBLAS support is not enabled
Currently, if OpenBLAS support is not enabled, a site.cfg file is not
written and numpy will use build host paths for libraries. If the build
host has any conflicting libraries, specifically libpython3.10.a, then
compilation will fail.

This ensures site.cfg is always written with buildroot paths.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-11 02:46:57 +08:00
Jeffery To 8d331953f3
numpy: Fix pyproject.toml-based build
The versions of setuptools and wheel pinned in pyproject.toml are older
than the versions available in the packages repo. This unpins the
versions so that the build can proceed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-05-11 02:46:57 +08:00
Jeffery To dcf551fbcf
python-cython: Add new host-only package
The host build replaces the use of the host pip requirements file. This
also updates the dependants of Cython to depend on the host build.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-03-31 13:06:33 +08:00
Alexandru Ardelean 5b9a66cd7c numpy: bump to version 1.23.3
Also bump Cython version to 0.29.32

And yeeeey: zip -> tar.gz

And they fixed the Intel AVX extension stuff/detection.
Which is why I deferred updating it until now.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2022-10-07 21:19:36 +03:00
Alexandru Ardelean 9a231e4301 numpy: bump to version 1.21.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-12-27 12:17:58 +02:00
Alexandru Ardelean d8b38b1102 numpy: bump to version 1.21.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-11-14 09:24:39 +02:00
Alexandru Ardelean 52aadf9579 numpy: bump to version 1.21.3
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-10-27 20:56:05 +03:00
Alexandru Ardelean 96cac0a7a8 numpy: bump to version 1.21.2
Switch to AUTORELEASE for PKG_RELEASE.
And update Cython as well.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-08-25 10:06:11 +03:00
Alexandru Ardelean 91f3482f7e numpy: fix circular dependency
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-07-29 15:33:34 +03:00
Alexandru Ardelean cb2300d354 numpy: bump to version 1.21.1
Also bump Cython version to 0.29.23.
And add support for OpenBLAS.
Currently optional, but will be enabled by default on some architectures
later.

Depends on PR https://github.com/openwrt/packages/pull/15685

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-07-26 12:05:57 +03:00
Alexandru Ardelean 731bb0265d numpy: bump to version 1.20.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-03-29 09:51:56 +03:00
Alexandru Ardelean 09214dec38 numpy: bump to version 1.20.1
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-02-15 10:42:16 +02:00
Alexandru Ardelean 005e77c7cb numpy: bump to version 1.20.0
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-02-02 16:25:10 +02:00
Alexandru Ardelean 56390073fa numpy: bump to version 1.19.5
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-01-11 22:56:45 +02:00
Alexandru Ardelean 6d33fb2885 numpy: bump to version 1.19.4
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-11-11 11:08:31 +02:00
Alexandru Ardelean adc7fc36a0 numpy: bump to version 1.19.3
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-11-02 13:36:18 +02:00
Alexandru Ardelean 94f28ac145 numpy: bump to version 1.19.2
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-09-14 09:23:24 +03:00
Jeffery To c0340f631c python: Use locked for host pip
This also removes PKG_BUILD_PARALLEL:=0 that was added for packages that
use HOST_PYTHON3_PACKAGE_BUILD_DEPENDS.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-08-31 03:48:47 -07:00
Jeffery To 722a5b8efa
python3: Use hash-checking mode when installing host pip packages
In hash-checking mode[1], pip will verify downloaded package archives
(source tarballs in our case) against known SHA256 hashes before
installing the packages.

As a consequence, this requires the use of requirements files[2] and
pinning packages to known versions.

The syntax for package Makefiles has changed slightly;
HOST_PYTHON3_PACKAGE_BUILD_DEPENDS no longer accepts requirement
specifiers like "foo>=1.0", only requirements file names (which are the
same as package names in the most common case).

This also updates affected packages, in particular:

* python-zipp: "setuptools_scm[toml]" has been split into
  "setuptools-scm toml" to reuse the requirements file for
  setuptools-scm (the extra depends installed by "setuptools_scm[toml]"
  is toml).

* python-pycparser: This previously used ply 3.10, whereas the
  requirements file will now install 3.11.

[1]: https://pip.pypa.io/en/stable/reference/pip_install/#hash-checking-mode
[2]: https://pip.pypa.io/en/stable/user_guide/#requirements-files

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-08-17 23:05:49 +08:00
Alexandru Ardelean d00604dfeb numpy: bump to version 1.19.1
Recommended Cython version is 0.29.21

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-08-03 14:09:38 +03:00
Alexandru Ardelean 86b322b6cb numpy: bump to version 1.19.0
Bump host Cython version as well.
Add note near PKG_VERSION to remember to periodically update it.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-07-01 08:52:08 +03:00
Jeffery To e0e2224f8a
python-packages: Disable parallel build when host pip is needed
This adds PKG_BUILD_PARALLEL:=0 to packages that depend on host Python
packages (HOST_PYTHON3_PACKAGE_BUILD_DEPENDS), because installing
packages with multiple concurrent pip processes can lead to errors or
unexpected results[1].

This also:

* Move HOST_PYTHON3_PACKAGE_BUILD_DEPENDS definitions to before
  python3-package.mk is included

* Update Python folder readme to include PKG_BUILD_PARALLEL:=0

[1]: https://github.com/pypa/pip/issues/2361

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-06-30 15:43:01 +08:00
Alexandru Ardelean c26eca5491 numpy: add new package
Essentially, this is a re-spin from
  https://github.com/openwrt/packages/pull/9797/

But a really trimmed down version.
Only the Py3 variant is added now, which makes the Makefile really small
now.

Cython is needed on the host, to cythonize some files.

The package needs targets with hard-float enabled. This is because on some
soft-float targets floating-point exception constants aren't defined.
We can define some dummy values, but that ends up being a bit too much
work.
So, for that, the package depends on HAS_FPU or KERNEL_MIPS_FPU_EMULATOR.
This way, numpy should be buildable on hard-float, or for MIPS on the FPU
emulator being compiled in.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2020-06-21 13:25:45 +03:00