Skip to content

Make install.py reconfigure editable installs when build type changes#455

Merged
trxcllnt merged 5 commits intonv-legate:branch-22.12from
trxcllnt:fix/editable-should-rebuild-on-build-type-change
Nov 4, 2022
Merged

Make install.py reconfigure editable installs when build type changes#455
trxcllnt merged 5 commits intonv-legate:branch-22.12from
trxcllnt:fix/editable-should-rebuild-on-build-type-change

Conversation

@trxcllnt
Copy link
Contributor

@trxcllnt trxcllnt commented Oct 26, 2022

The SKBUILD_CONFIGURE_OPTIONS and CMAKE_ARGS envvars are the two ways to set CMake arguments in scikit-build. CMAKE_ARGS is set automatically by conda-build, and my understanding was that scikit-build merges the values in both CMAKE_ARGS and SKBUILD_CONFIGURE_OPTIONS together... except apparently not.

  • CMAKE_ARGS="..." pip install --editable . does reconfigure if CMAKE_BUILD_TYPE changes between builds.
  • SKBUILD_CONFIGURE_OPTIONS="..." pip install --editable . doesn't reconfigure if CMAKE_BUILD_TYPE changes.

🤔

Here's the build logs of 3 --editable builds run in a clean environment and in order:

This PR changes install.py to set all CMake arguments via CMAKE_ARGS instead of SKBUILD_CONFIGURE_OPTIONS.

Fixes #372.

Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes my issue #372!

@trxcllnt trxcllnt merged commit 2a1ca97 into nv-legate:branch-22.12 Nov 4, 2022
manopapad pushed a commit that referenced this pull request Mar 5, 2025
* Don't inherit from variant because GCC < 11 had a bug with it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:bug-fix PR is a bug fix and will be classified as such in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rebuild not triggered when debug/release option changes

2 participants