Skip to content

setup.py: Windows openPMD_CMAKE_... Env Vars#1896

Open
ax3l wants to merge 2 commits into
openPMD:devfrom
ax3l:fix-setup-py-env-vars-caps-win
Open

setup.py: Windows openPMD_CMAKE_... Env Vars#1896
ax3l wants to merge 2 commits into
openPMD:devfrom
ax3l:fix-setup-py-env-vars-caps-win

Conversation

@ax3l

@ax3l ax3l commented Jun 24, 2026

Copy link
Copy Markdown
Member

We pass openPMD_CMAKE_<CMakeVar>=<value> environment variables through as -D flags to CMake configure.

Windows environment variable are all CAPS, so also accept the all-caps variant of the prefix, then the openPMD_ CMake option names are case-sensitive,
so restore the openPMD_... prefix that upper-casing would destroy. All suffixes of our options are
luckily ..._ALL_CAPS anyway.

Noticed in #1892 that our openPMD_CMAKE_openPMD_USE_ADIOS2='ON' env var was ignored on Windows, defaulting to AUTO, which skipped ADIOS2 since we had a transitive dependency issue.

We pass openPMD_CMAKE_<CMakeVar>=<value> environment
variables through as `-D` flags to CMake configure.

Windows environment variable are all CAPS, so also
accept the all-caps variant of the prefix, then the
`openPMD_` CMake option names are case-sensitive,
so restore the "openPMD_" prefix that upper-casing
would destroy. All suffixes of our options are
luckily `..._ALL_CAPS` anyway.
@ax3l ax3l added this to the 0.17.2 milestone Jun 24, 2026
@ax3l ax3l requested a review from franzpoeschel June 24, 2026 17:36
Comment thread setup.py Outdated
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