Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
current python flavor. It can be used in dependency lines when the
port itself is not python flavored. For example, deskutils/calibre.
By default, all the flavors are generated. To only generate flavors
for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.
In all the ports with Python dependencies, the *_DEPENDS entries MUST
end with the flavor so that the framework knows which to build/use.
This is done by appending '@${PY_FLAVOR}' after the origin (or
@${FLAVOR} if in a Python module with Python flavors, as the content
will be the same). For example:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
PR: 223071
Reviewed by: portmgr, python
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D12464551be3c723Port details
science/py-h5py 3.16.0_1
General-purpose Python interface to the HDF5 library
Port info
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- latest: 3.16.0_1
- Upstream
- up to date
- Last update
- to 3.16.0_1 · 01291f5d60
- Quarterly
- 2026Q4: 3.16.0_1
- WWW
- https://www.h5py.org/
- Links
- cgit · VuXML · Report wrong data
Install
- Package
# pkg install py312-h5pyinstalls 3.16.0_1 fromlatest; fromquarterly(2026Q4) 3.16.0_1- Port
# cd /usr/ports/science/py-h5py && make install clean# make -C /usr/ports/science/py-h5py config # change options first
- Size
- 1.2 MiB download · 6.1 MiB installed
- Depends on
- lang/python312 3.12.15, math/py-numpy 2.4.6_1,1, science/hdf5 1.12.2_2,1
- License
- BSD3CLAUSE
- Options
- 2 of 2 on in the package: DOCS EXAMPLES
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 3.16.0_1 | ✗ | – |
| FreeBSD 15 | 3.16.0_1 | ✗ | – |
| FreeBSD 14 | 3.16.0_1 | ✗ | 3.16.0_1 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 3.16.0_1 | ✗ | – |
| FreeBSD 14 | 3.16.0_1 | ✗ | 3.16.0_1 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 3.16.0_1.Fixed (0)
No VuXML entries for this package.
Problem reports (1) · open in Bugzilla, most recently changed first
| PR | Summary | Status | Changed |
|---|---|---|---|
| 298684 | maintainer-feedback? science/py-h5py: fails to build on arm64 | New | 2026-09-19 |
Commits (81)
Update to 2.7.0 PR: 219754 Submitted by: xmj (maintainer)0e927c0281
Update science/hdf5 to 1.10.1 - Bump PORTREVISION for shlib change Changes: https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1-RELEASE.txt8b1d897ff6
- Remove bogus NO_ARCH: this module installs .so files - Cosmetic fixes Approved by: portmgr blanket172572ce8c
Change MAINTAINER from xmj@FreeBSD.org to johannes@perceivon.net PR: 210265 Submitted by: Johannes Jost Meixner (johannes@perceivon.net) Approved by: pi (mentor)c5152e00e5
Several ports: Change MAINTAINER from xmj@chaot.net to xmj@FreeBSD.org PR: 209746 Submitted by: xmjad67447870
science/py-h5py: 2.5.0 -> 2.6.0 PR: 209630 Submitted by: Johannes Jost Meixner <xmj@chaot.net> (maintainer)dd0e91841e
- Update to 1.10.0 - Add LICENSE_FILE - Remove outdated PORTSCOUT - Re-enable SZIP option by default: it was changed unintentionally in r398300 Changes: https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.0/src/hdf5-1.10.0-RELEASE.txt https://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html9a1f45d861
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat: portmgr
Sponsored by: Absolight597afc47ba- Update to 2.5.0 - Switch to options helper - Switch to do-test PR: 205137 Submitted by: maintainer Approved by: mat (mentor) Differential Revision: D450722ddf78637
- Update to 1.8.15 - Bump PORTREVISION for science/hdf5 shlib change Changes: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.15-RELEASE.txt http://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.htmle4796f7301
Update ports in the s* categores to not use GH_COMMIT. With minor cleanups to make things simpler. With hat: portmgr Sponsored by: Absolight2020021309
- Update to 1.8.14 - Update MASTER_SITES - Use INSTALL_TARGET=install-strip instead of MAKE_ENV=INSTALL_STRIP_FLAG=${STRIP} - Bump PORTREVISION for science/hdf5 shlib change
Changes: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14-RELEASE.txt
http://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html6e5edf87e4science/py-h5py: upgrade to 2.4.0 - upgrade to 2.4.0 Differential Revision: https://reviews.freebsd.org/D1456 Approved by: koobs (mentor)efea8ccd01
Update "BSD" license in science category92cd1b0812
- Convert ports of science/ and security to new USES=python Approved by: portmgr (implicit)742321c708
Update the default version of GCC in the Ports Collection from GCC 4.7.4 to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit)15945f8122
science/py-h5py: Upgrade to 2.3.0 - Update to 2.3.0 - Remove BROKEN mark Approved by: swills (mentor)22f32ce577
Mark BROKEN: Does not build
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -fPIC -DH5_USE_16_API -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/wrkdirs/usr/ports/science/py-h5py/work/h5py-2.2.1/lzf -I/usr/local/include -I/usr/local/include/python2.7 -c h5py/h5fd.c -o build/temp.freebsd-10.0-RELEASE-p3-amd64-2.7/h5py/h5fd.o
In file included from h5py/h5fd.c:259:
In file included from h5py/api_compat.h:21:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
h5py/h5fd.c:857:39: error: use of undeclared identifier 'H5FD_MPIPOSIX'
__pyx_t_1 = __Pyx_PyInt_to_py_hid_t(H5FD_MPIPOSIX); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
1 warning and 1 error generated.
error: command 'cc' failed with exit status 1
*** Error code 1
Reported by: pkg-fallout486fffba3a- Update to 1.8.12 (from science/hdf5-18) - Add LICENSE - Convert to new LIB_DEPENDS format - Convert to new options helper - Use NOT_FOR_ARCHS - Strip shared library - Remove deprecated PTHREAD_* - Use MAKE_CMD - Bump PORTREVISION for science/hdf5 shlib change [1] Changes: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.12-RELEASE.txt http://www.hdfgroup.org/HDF5/doc/ADGuide/Changes.html Approved by: portmgr (bapt) [1]095fbe3e1a
Update the default version of GCC used in the Ports Collection from GCC 4.6.4 to GCC 4.7.3. This entails updating the lang/gcc port as well as changing the default in Mk/bsd.default-versions.mk. Part II, Bump PORTREVISIONs. PR: 182136 Supported by: Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports) Tested by: bdrewery (two -exp runs)1cd277bdce
science/py-h5py: update to 2.2.1 - Update to 2.2.1 - Add EXAMPLES PR: ports/184746 Submitted by: maintainer8fac3afe60
science/py-h5py: update to 2.2.0 - Update to 2.2.0 - Add LICENSE (BSD) - Add DOCS - Pass maintainership to submitter PR: ports/183519 Submitted by: Johannes Jost Meixner <xmj chaot.net> Approved by: maintainer (timeout, 2 weeks, 3 times)643a708b82
- Update to 2.1.1 - Remove leading article from COMMENT - Use default dependency for science/hdf5-18 - Add patch PR: ports/181483 Submitted by: Johannes Meixner <xmj@chaot.net> Approved by: wg (mentor)22d8f82a0e
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)3be3e90f93Add NO_STAGE all over the place in preparation for the staging support (cat: science)1dd0d087e7
science/py-h5py: Add OPTION support for HDF5 1.8 - Add OPTION to use science/hdf5-18 instead of science/hdf5 PR: ports/179572 Submitted by: Johannes Meixner <xmj@chaot.net> Approved by: maintainer timeout (8 weeks)c90936db20
- remove MD5c394c56dc0
- Add py-numpy into RUN_DEPENDS PR: ports/143419 Submitted by: TAOKA Fumiyoshi <fmysh AT iijmio-mail.jp> (maintainer)86cafb7292
- Update to 1.2.1 PR: ports/138984 Submitted by: wenheping@gmail.com(myself) Approved by: maintainer, jadawin(co-mentor) Feature safe: yese16f0d6cbf
Add py-h5py 1.2.0, a general-purpose Python interface to the HDF5 library. PR: ports/136096 Submitted by: TAOKA Fumiyoshi9921e14e14