Skip to content

Conversation

@henryiii
Copy link
Collaborator

@henryiii henryiii commented May 20, 2025

Signed-off-by: Henry Schreiner [email protected]

Description

Bug.

Suggested changelog entry:

  • Global SDist error wasn't triggering when using the old method.

@henryiii henryiii requested a review from Copilot May 20, 2025 06:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the CMake configuration where the error wasn't triggering correctly due to an incorrect environment variable check.

  • Corrects the syntax used to check for the PYBIND11_GLOBAL_PREFIX environment variable
  • Ensures proper error messaging when the unsupported variable is defined
Comments suppressed due to low confidence (1)

CMakeLists.txt:68

  • The revised environment variable check is correct. Please ensure that this change reliably triggers the intended error and that similar checks in the project use the same syntax.
if(DEFINED SKBUILD AND DEFINED ENV{PYBIND11_GLOBAL_PREFIX})

henryiii added 2 commits May 20, 2025 10:42
@henryiii henryiii force-pushed the henryii/ci/fixerror branch from 5959be3 to 02ebc76 Compare May 20, 2025 14:42
@henryiii henryiii merged commit e625668 into pybind:master May 20, 2025
128 of 129 checks passed
@henryiii henryiii deleted the henryii/ci/fixerror branch May 20, 2025 16:30
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label May 20, 2025
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants