-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise CMAKE helper functions to support custom Python paths. #702
Revise CMAKE helper functions to support custom Python paths. #702
Conversation
@manopapad I think something went wrong with the |
@csadorf we require that every PR have one of the "category" labels, to generate the release notes automatically later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Check the the SOURCE_DIR vs CURRENT_SOURCE_DIR? Very minor point. If you are a building in a subfolder, do you want the python file generated in the subfolder?
cmake/legate_helper_functions.cmake
Outdated
elseif(IS_ABSOLUTE LEGATE_OPT_PY_PATH) | ||
set(py_path "${LEGATE_OPT_PY_PATH}") | ||
else() | ||
set(py_path "${CMAKE_SOURCE_DIR}/${LEGATE_OPT_PY_PATH}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be CMAKE_SOURCE_DIR
or CMAKE_CURRENT_SOURCE_DIR
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using CMAKE_CURRENT_SOURCE_DIR
is probably more flexible.
@jjwilke I addressed your question. |
@jjwilke Any chance we could merge this soon? |
@csadorf Done. Sorry about the delay. |
No worries at all, thank you for merging! |
This change set enables the support of legate plugin repository structures, where the CPP and Python source code are maintained in different top-level directories and also supports nested Python directories for namespace packages, such as
legate/my_lib
.