-
Notifications
You must be signed in to change notification settings - Fork 63
Adding conda build recipe files #188
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
Conversation
conda/conda-build/meta.yaml
Outdated
| # vNN.NN.NN | ||
| # vNN.NN.NN.dev | ||
| {% elif 'dev' in environ.get('GIT_DESCRIBE_TAG', '') %} | ||
| {% set version = environ.get('GIT_DESCRIBE_TAG', '') ~ environ.get('GIT_DESCRIBE_NUMBER', '') %} |
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.
Remember to strip the preceding "v" from the tag so that the version number is valid
conda/conda-build/meta.yaml
Outdated
| {% elif 'dev' in environ.get('GIT_DESCRIBE_TAG', '') %} | ||
| {% set version = (environ.get('GIT_DESCRIBE_TAG', '') ~ environ.get('GIT_DESCRIBE_NUMBER', '')).lstrip('v') %} | ||
| {% else %} | ||
| {% set version = environ.get('GIT_DESCRIBE_TAG', '').lstrip('v') %} |
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.
Either this conditional should have a default statement to handle if it's not running under a git repo, or the environ.get() in the fallback should have a default value.
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.
This also applies for PR's which are git repos, but do not have tags.
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.
Hmm, I think that if we are running in one of these situations, we should provide package version through package_version. I don't think that there is really a good default. Let me know what do you think.
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.
hrm, agreed. We could just set it to 0.0.0?
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.
We could do that, but I would personally prefer an error message that would remind me to set package_version. WDYT? Unfortunately, for cunumeric we don't have a choice since we need a default to avoid errors in the initial pass where the environment vars are not defined yet. That's why we need a "fake" default there, but it also can prevent error messages.
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.
I tried to remove the defaults, but that does not work:
TypeError: argument of type 'NoneType' is not iterable
So it seems that without the default, the output of environ.get ends up being None in the first pass. So we do have to keep the default, even if it is simply ''. I will elevate the default into a separate variable.
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.
Sounds good. Other than that LGTM.
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 be fixed. Take a look and confirm if ready for merging.
* Update the default test binary name * Make exception handling eager and put back Python exception support * Custom exception handler to filter legate::TaskException * Address review comment * Address review comments * Support multiple exception classes * Expose the interna list of exceptions as a tuple * Re-raise index errors as runtime errors * Should have retrieved the index class outside the try block
Files copied from the utils repository.