Commit Graph

98 Commits

Author SHA1 Message Date
daniel 664f316fe5 merge py2-numpy into py3-numpy as suggested by sthen@ 2025-06-21 21:33:42 +00:00
jca 2bde3f9976 Implement getauxval(3) using elf_aux_info(3) to unbreak runtime on riscv64 2025-06-17 11:59:23 +00:00
jca 7d7bda1d8f refresh patches 2025-06-17 11:58:38 +00:00
daniel 9182376cd4 update numpy to 2.2.6 for Python 3.13 support
Besides official support for newer Python, this updates bring typing and
threading support as well as a few new functions for linear algebra like
matvec and vecmat. Went through a bulk by tb@.

tweaks and ok tb@
2025-06-12 20:49:12 +00:00
sthen 898fe94620 bump py-numpy consumers. at least those which have compiled modules using
numpy are no longer ABI-compatible following the update to numpy 2.x.
this may over-bump slightly, but I've seen problems with at least pandas
and scipy, and identifying others individually is too time-consuming.
2025-05-20 12:10:49 +00:00
tb 2865099287 Update to numpy 2.0.2
This will break a few ports and fix some others. The required clean up
work in the consumers will be committed by daniel shortly.

tested on amd64, aarch64, sparc64, i386 and in an amd64 bulk by me
and in real world scenarios by various.

from daniel

Thanks to sthen for being way too efficient at trawling through issue
trackers and locating the workaround for an aarch64 ICE amazingly quickly.
2025-05-17 20:30:36 +00:00
sthen 069c4d66ce add a BDEP on pythran for ports using cython, unless MODPY_CYTHON_PYTHRAN_RDEP
is set (used in py-numpy to break a dependency loop). suggestion of doing it
this way rather than with a PKGPATH check from tb@.
2025-02-05 10:25:00 +00:00
sthen ec9bb8e614 drop COMPILER_LANGS, add annotation - configure checks for a C++17
compiler although it doesn't actually show up in build logs as being
used.
2025-02-02 09:46:45 +00:00
sthen 223dd2dcf0 set COMPILER_LANGS=c for various C-only ports
add annotations near COMPILER for some other ports that don't have
COMPILER_LIBCXX in WANTLIB

not changing the actual compiler version of anything here (some could
possibly remove the COMPILER line completely where they only used
COMPILER due to an old WANTLIB entry which has since stopped using
C++, but changing that is too likely to break things)
2025-01-28 11:22:02 +00:00
jca 5a9600c7e5 Mark ports using lang/gcc/8,-f95 on arm64 as not BTI compliant
To be reconsidered when we move to lang/gcc/11 or newer, which
supports -mbranch-protection. The fix isn't complete since some ports
may use BTI-incompatible fortran code through shared libraries.

ok tb@ phessler@ pascal@ sthen@
2025-01-10 18:03:43 +00:00
sthen 38692df050 set MODPY_PYBUILD to 'mesonpy' instead of 'other' now that we have it 2025-01-03 21:12:04 +00:00
daniel ecdc7180d3 drop no longer needed patches for numpy now that we're on python 3.12
ok sthen@, tb@
2024-12-29 03:32:58 +00:00
sthen 81618f3583 handle py3.12 switchover in math 2024-12-21 11:38:23 +00:00
sthen 7f12fab561 numpy: add RDEP on textproc/py-charset-normalizer. This is detected at
runtime at the start of running crackfortran.py but not used until slightly
later which can result in issues with dpb junking (as reported by naddy in
scipy) - also forcing the dep ensures consistent behaviour.
2024-12-12 10:17:33 +00:00
rsadowski 2b38990dc3 Update lapack to 3.12.0
This update merges math/{cblas,blas} into math/lapack and drops the
documentation, otherwise the dependency on doxygen creates a loop. (discovered
by jca@, merci). The whole update simplifies the situation (requested by
sthen@)

Bump all consumers

Feedback from many, survived in a bulk build and no objections from steven@
(maintainer)
2024-11-07 20:56:52 +00:00
sthen 96491cab0c update to py3-numpy-1.26.4, mostly from daniel, small tweaks by me
much testing and help tb.  ok daniel tb
2024-08-29 08:11:00 +00:00
sthen 41b34e2587 bump REVISION for py3.10 -> py3.11 switch 2024-05-06 12:23:44 +00:00
tb c1f64bae54 Update to py-numpy 1.25.2
Tested on amd64, arm64, i386, riscv64 and sparc64 with sthen doing a bulk
on i386. Let's sort out the remaining fallout in tree.

from daniel who did the heavy lifting
tested & ok jca sthen tb
2024-01-16 16:33:58 +00:00
sthen 2b2538c1a8 update to py3-numpy-1.24.1 2023-01-16 12:13:03 +00:00
tb c34ec940b3 py-numpy: add missing TDEPs. py3-typing_extensions (tests break badly if
it isn't installed). test_requirements.txt also lists py3-test-cov and
py3-wheel, so add them as well.

ok phessler
2023-01-13 08:24:08 +00:00
sthen 25fdaf201c update to py3-numpy-1.24.0 (and I rechecked that --disable-optimization
is still needed on i386)
2023-01-12 21:42:05 +00:00
tb b8e9b0024f py-numpy: enable fortran again on aarch64 2023-01-11 22:03:44 +00:00
phessler a954514d48 unbreak by temporarily stop using a fortran compiler
suggested by jca@
OK tb@
2023-01-10 09:24:03 +00:00
sthen fcb28fbc46 update to py3-numpy-1.23.5 2022-12-07 09:22:19 +00:00
sthen d858b7cc2a Ports built with setuptools on python 3.10 don't need a RUN_DEPENDS on
setuptools (it's used as a package locator but importlib.metadata in
newer Python core or the external importlib_metadata are preferred).
So drop the RDEP in that case (it's still kept for py27) and bump
revisions.
2022-11-26 23:28:11 +00:00
sthen dae9f91e31 bump for MODPY_DEFAULT_VERSION_3 change 2022-11-13 15:28:39 +00:00
kmos 362ca7b59f numpy uses C++ now, so COMPILER needs to be "base-clang ports-gcc"
Fixes build on sparc64
2022-09-11 23:20:18 +00:00
sthen 8bbfef91cb update to py3-numpy-1.23.2, thanks jca@ tb@ for tests on various archs
and it's been through most of a bulk on i386 by me albeit with python
default switched to 3.10 (plus various consumers tested separately with
3.9).

- i386 is using --disable-optimization for now; 1.20 added cpu optimizations
(SSE, AVX, etc) with runtime detect, but with any optimization level we're
hitting segfaults at runtime in numpy's own tests, and when building other
ports that use numpy (e.g. makehuman)

- macppc segfaults in numpy's own tests - this isn't new for this version,
1.19.5 failed in this way on OpenBSD too, but various other runtime use
is working (e.g. able to build py-scipy and makehuman with this).
old patches were supposedly needed to build numpy itself and scipy;
they are no longer needed for those so I've removed them.
2022-09-02 18:59:16 +00:00
sthen d83f47c17e build debug packages for numpy 2022-08-30 14:45:15 +00:00
naddy ab45f39af6 drop RCS Ids 2022-03-11 19:36:11 +00:00
sthen 3fb7cdbcf6 bump REVISION for switch from Python 3.8 -> 3.9 2021-11-02 00:01:35 +00:00
jca 8894f522ea Make fortran optional in numpy
Since ports/lang/gcc doesn't have riscv64 support yet this helps us
unlock a bunch of ports there.  Disabling fortran/blas/lapack means that
some feature are missing.  This is mitigated by numpy shipping a minimal
lapack copy translated to C.
2021-10-28 10:28:32 +00:00
bket a8f676de3e Update to py-numpy-1.19.5
Feedback from and bulk testing (i386) by sthen@. Thank you!

OK sthen@
2021-10-25 06:33:04 +00:00
daniel ca74f27d06 adapt a few ports to the numpy python2/python3 port split
- make the python2 consumers point to py2-numpy
- make the py-numpy port python3-only so it can be updated
2021-06-14 01:02:27 +00:00
kmos 2795ba2341 Bump the REVISION on all ports that use the python2 version of
py-setuptools.

Also change the lang/python module to use the new
devel/py2-setuptools for python2 ports

ok sthen@
2021-05-21 19:50:21 +00:00
sthen d80c418015 regen PLISTs for python ports with .so files that end up renamed due to
the EXT_SUFFIX change in Python 3.8.7
2021-01-04 14:06:26 +00:00
sthen d9cfe4113e bump REVISION; python 3 default changed to 3.8 2020-07-03 21:12:24 +00:00
pirofti b97e1585a3 Update to numpy-1.16.5
This was a group effort and it already passed several bulks
on various archs.

Main diffs from jca@, sthen@.
Tested in bulk by sthen@ and naddy@.
Input from Daniel Dickman, tb@, Martin Reindl, ajacotot@

OK sthen@, kmos@
2020-04-02 07:39:09 +00:00
daniel add32f09f8 drop maintainer 2020-03-10 03:31:45 +00:00
kmos c8e6bd4de3 Fix tests by dropping spurious "fake" from do-test target 2019-11-18 04:10:31 +00:00
daniel 81e6976bfa PERMIT_PACKAGE_CDROM -> PERMIT_PACKAGE 2019-07-07 14:58:04 +00:00
naddy 3e042ba62d Bump all ports that depend on ports-gcc on the clang archs.
SYSTEM_VERSION didn't quite work out how we expected and it's
easier|safer to do it this way than fiddle with pkg_add now.
2019-04-28 21:08:26 +00:00
sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00
daniel be091e24ff Minor update to numpy 1.14.6 to fix a few bugs.
While here, drop BROKEN-alpha now that we have gcc 4.9 there which can
successfully build numpy on that platform.
2018-10-26 21:09:31 +00:00
daniel 4bcdc69496 Fix numpy breakage found by landry@ via macppc bulk build. 2018-08-02 00:15:24 +00:00
daniel d5f3f849cc Update to numpy 1.14.5.
Tested by myself and Elias Mariani.
2018-06-30 21:49:33 +00:00
daniel cc9a6df0b5 Minor update to 1.9.3.
The main change is to switch from sourceforge to pypi for hosting of the
distfile as the latest versions of numpy no longer seem to be published to
sourceforge.
2018-06-15 02:01:13 +00:00
steven 35084d2303 pass the appropriate --fcompiler flag to the build so libgfortran is
used consistently.

issue reported by landry@
no objection from daniel@
2018-02-21 21:02:52 +00:00
steven 0132310d83 bump after lapack update, switch to gfortran
ok pirofti@
2017-11-13 07:29:03 +00:00
landry ffe8bbd592 bump ports depending on python3 in math, misc and multimedia 2017-01-03 19:23:48 +00:00