Skip to content

Python: Only export _PyInit_openpmd_api_cxx#1899

Merged
ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-static-build-deps-py
Jun 27, 2026
Merged

Python: Only export _PyInit_openpmd_api_cxx#1899
ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-static-build-deps-py

Conversation

@ax3l

@ax3l ax3l commented Jun 26, 2026

Copy link
Copy Markdown
Member

Hide all other symbols to avoid clashes when loading transient (static) dependencies in workflows that combine ImpactX, WarpX, and openPMD-api.

Relevant for pip/wheels that do static builds (i.e. Python wheels): Currently, openPMD-api and ImpactX could not be import-ed together because HDF5 would clash.

Not a problem when installing with shared dependencies (of HDF5, openPMD, ABLASTR, etc.), i.e., from conda-forge or Spack.

Used in #1898

Hide all other symbols to avoid clashes when loading
transient (static) dependencies in workflows that combine
ImpactX, WarpX, and openPMD-api.

Relevant for pip/wheels that do static builds (i.e. Python wheels):
Currently, openPMD-api and ImpactX could not be `import`-ed
together because HDF5 would clash.

Not a problem when installing with shared dependencies
(of HDF5, openPMD, ABLASTR, etc.), i.e., from conda-forge or Spack.
@ax3l ax3l added this to the 0.17.2 milestone Jun 26, 2026
@ax3l ax3l requested a review from franzpoeschel June 27, 2026 00:01
@ax3l ax3l enabled auto-merge (squash) June 27, 2026 00:27
@ax3l ax3l merged commit e58a40c into openPMD:dev Jun 27, 2026
31 checks passed
@ax3l ax3l deleted the fix-static-build-deps-py branch June 27, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants