Skip to content

Conversation

@henryiii
Copy link
Collaborator

@henryiii henryiii commented Oct 21, 2022

Description

Quick naming update - this actually has to set PREFIX_PATH, not MODULE_PATH (my instructions were right, but I hadn't noticed I forgot to change the name). Suggested usage:

module_dirs = importlib.metadata.entry_points(group="cmake.prefix")
dirs = (importlib.resources.files(ep.load()) for ep in module_dirs)
paths_str = ";".join(str(p) for p in dirs)
cmake_arg = f"-DCMAKE_PREFIX_PATH={paths_str}"

Suggested changelog entry:

Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii marked this pull request as draft October 21, 2022 03:31
@henryiii henryiii marked this pull request as ready for review October 21, 2022 03:33
@henryiii henryiii marked this pull request as draft October 21, 2022 03:47
@henryiii henryiii closed this Oct 21, 2022
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