Skip to content

Use ENVIRONMENT_MODIFICATION instead of ENVIRONMENT for PYTHONPATH#22

Open
hmenke wants to merge 1 commit intoTRIQS:unstablefrom
hmenke:pythonpath
Open

Use ENVIRONMENT_MODIFICATION instead of ENVIRONMENT for PYTHONPATH#22
hmenke wants to merge 1 commit intoTRIQS:unstablefrom
hmenke:pythonpath

Conversation

@hmenke
Copy link
Member

@hmenke hmenke commented Oct 27, 2025

Currently the Python tests have the property setting

ENVIRONMENT PYTHONPATH=${PROJECT_BINARY_DIR}/python:$ENV{PYTHONPATH}

With this the value of PYTHONPATH that will be used during CTest is frozen at configure time.

To make tests dynamically modify the value of PYTHONPATH it is better to use ENVIRONMENT_MODIFICATION (introduced in CMake 3.22).

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.

1 participant