Repository navigation
Releases
v2.4.0: abi3 wheels + Windows
v2.4.0 — stable-ABI (abi3) wheels, first Windows wheels
Both packages now ship one cp311-abi3 wheel per platform instead of one
wheel per Python version — a single install works on CPython 3.11 – 3.14
and newer:
| Platform | Wheel tag |
|---|---|
| Linux x86_64 | cp311-abi3-manylinux_* |
| macOS Apple Silicon | cp311-abi3-macosx_arm64 |
| macOS Intel | cp311-abi3-macosx_10_9_x86_64 |
| Windows x64 (new) | cp311-abi3-win_amd64 |
Free-threaded CPython (cp314t) is not covered by the stable ABI — install
from the sdist there (built automatically with the full API).
Bundled NEC2++ engine
necpp_src is pinned at d32ed8f (necpp master, including PR #140 — the
nec2diff negative-value comparison / exit-status fixes for #138 and the gshank
Sommerfeld convergence-floor revert for #139). The revision is embedded in
every build as necpp_engine_sha=<commit> (verify with strings).
Other changes
- Compiled with
Py_LIMITED_API=0x030B0000; every wheel is audited with
abi3auditin CI and tested on CPython 3.11 and 3.14 across all four
platforms (16 test jobs per package). - Source builds now require SWIG >= 4.4.1 (CI pins 4.5.1); release sdists
include the generated wrapper, so installing from an sdist needs no SWIG. - PyNEC's
-fPIC/-lstdc++flags are now POSIX-only so MSVC builds work.
Closes #35.
v2.3.5
What's Changed
- Update necpp_src to tmolteno/necpp@d32ed8f — see upstream changelog
- Fixes #139 (Sommerfeld interpolation):
c_ggrid::interpolatehad its cache-guard branches exchanged relative to the NEC-2 referenceINTRP, producing wire-order-dependent impedance, accepted power and gain over a Sommerfeld (GN 2) ground. Fixed upstream in necpp@e3f81e6; PyNEC 2.3.4 pinned a pre-fix snapshot, which is why it reproduced there. With the corrected guard, wire insertion order no longer affects results (verified bit-identical on the issue reproducer, impedance agreeing with the nec2c reference engine). - Fixes a non-terminating Sommerfeld integration regression (necpp#140): a loosened gshank() convergence floor degraded the Sommerfeld tables on decks with wires close to a
GN 2ground until the rom2() integrator never converged (endlessROM2 -- STEP SIZE LIMITEDoutput). Floor restored; the issue #139 deck now completes in milliseconds. - Fixes nec2diff (#138) (affects the
nec2++package): negative values are now compared (any two negative values used to compare equal), sign flips give finite differences, and the exit status is 1 when files differ. - Regression tests added upstream for all of the above.
- Fixes #139 (Sommerfeld interpolation):
- Behavior change carried over from necpp 2.3.5: completing the geometry with
GE 1(or-1) without a subsequentGNcard now raises an exception at simulate time, instead of silently running free space. Free-space models should complete the geometry withGE 0(geometry_complete(0)). Thetest_example1example has been updated accordingly.
The issue #139 reproducer (reproduce.py) passes wire-order invariance against this release.
Full Changelog: v2.3.4...v2.3.5
v2.3.4
What's Changed
- Update necpp_src to v2.3.4 — see upstream changelog
- Breaking:
get_impedance_real/imagnow acceptfeed_indexparameter (imp.back()→imp[0]) - New:
nec_impedance_real_indexed/imag_indexedC API for specific feeds - Doxygen documentation for multi-feed access patterns
- v2.3.3: Fix GX solve and three-plane symmetry reflection
- Breaking:
- Update PyNEC SWIG interface to match new impedance API
Full Changelog: v2.3.2...v2.3.4
v2.3.2
What's Changed
- Update necpp_src to v2.3.2 — see upstream changelog
- v2.3.2: NE/NH near-field blank count defaults to 1 (NEC-2 Part 3 compliance)
- v2.3.2: Memory safety fixes — prevent duplicate close and invalid pattern reads
- v2.3.2: Fix uninitialized read for average-only radiation-pattern rows
- v2.3.1: Upgrade segment/patch counts to int64_t for large simulations
- v2.3.0: Fix flat-spiral helix (GH HL=0) degenerating to straight wire
Full Changelog: v2.2.6...v2.3.2
v2.2.6
What's Changed
- Add Python 3.14 wheel builds (cp314 on Linux + macOS ARM)
- Drop Python 3.10 wheels — minimum supported version is now 3.11
- Bump
requires-pythonfrom>=3.9to>=3.11 - Add
Programming Language :: Python :: 3.14classifier
Full Changelog: v2.2.5...v2.2.6
v2.2.5
What's Changed
- Fix: Include Eigen headers in source distribution.
graft necpp_src/src/eigenadded to MANIFEST.in so pip install from sdist no longer fails withfatal error: Eigen/Dense: No such file or directory. - Use
recursive-includefornecpp_src/srcto ensure all headers and sources are packaged.
v2.2.4
- Auto-generate
config.hinsetup.py— no longer requires CMake before pip install
Full Changelog: v2.2.4...v2.2.5
v2.2.4
What's Changed
- Fix:
pip install pynecandpip install necppnow work from source distribution without requiring CMake to be pre-run.config.his auto-generated bysetup.pyat build time. - Clean up docs: remove Python 2 references, outdated NEWS, stale install instructions
- Fix necpp README Python 3 syntax in example code
Full Changelog: v2.2.3...v2.2.4
v2.2.3 — SC-card geometry fix + re-enabled patch test
Changes
- Bump necpp_src submodule to include:
fix(geometry): stop SC API cards from expanding into patch grids (#120) — resolves the hang innec_rp_cardon surface-patch geometriesfix(safe_array): useeigen_segmentwhere callers mean a length (#121)
- Re-enable
test_multiple_sc_cards::test_patch(no longer hangs) - Update expected impedance/gain values to match corrected geometry
v2.2.2 — SC-card geometry fix + re-enabled patch test
Changes
- Bump necpp_src submodule to include:
fix(geometry): stop SC API cards from expanding into patch grids (#120) — resolves the hang innec_rp_cardon surface-patch geometriesfix(safe_array): useeigen_segmentwhere callers mean a length (#121)
- Re-enable
test_multiple_sc_cards::test_patch(no longer hangs) - Update expected impedance/gain values to match corrected geometry
v2.2.1 — CMake-based necpp v2.2.0 engine, build fixes
v2.2.1
Changes
- Build fixes for the CMake-based necpp (v2.2.0) submodule:
- Exclude
nec_wasm.cppfrom the Python extension source glob (Emscripten-only; broke native builds). necpp/build.sh: fix submodule init (--init), document thenecpp_srcsymlink required bysetup.py.PyNEC/setup.py: remove deadnecpp_src/win32/include dir (gone in CMake necpp;config.his now CMake-generated inbuild/).MANIFEST.in: pointconfig.hinclude atsrc/config.h.in(generated, not committed).- Fix stale
config.hcomments in bothsetup.pyfiles.
- Exclude
- Version bump to 2.2.1.