Skip to content

Conversation

@KacperMayday
Copy link
Collaborator

In the current implementation, csp_autogen script always perform a full module import, which triggers execution of parent-level __init__.py files. These __init__.py files may import dependencies that are unavailable at build time, even though they are not required for generating C++ code.

This PR adds an optional flag to allow importing the source module in isolation, bypassing parent-level imports from __init__.py files. This prevents unnecessary dependency loading during build time and avoid circular dependency issues.

…ports

Signed-off-by: Kacper Madej <kacper.madej@point72.com>
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