Skip to content
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

Add an environment variable to explicitly enable/disable azureop build #527

Merged
merged 12 commits into from
Aug 17, 2023

Conversation

wenbingl
Copy link
Member

@wenbingl wenbingl commented Aug 16, 2023

  1. Add two env. variable to control the azureop build.
  2. Add two pipelines to verify the debuggable and editable python build. + some minor fixes.

@wenbingl wenbingl requested a review from a team as a code owner August 16, 2023 18:00
@wenbingl wenbingl marked this pull request as draft August 16, 2023 18:01
@wenbingl wenbingl changed the title Update ci.yml for Azure Pipelines Add an environment variable to explicitly enable/disable azureop build Aug 17, 2023
@wenbingl wenbingl marked this pull request as ready for review August 17, 2023 20:51
if azure_flag is None:
# OCOS_NO_AZURE will be ignored if OCOS_ENABLE_AZURE is set.
azure_flag = "OFF" if os.environ.get('OCOS_NO_AZURE') == '1' else None
if azure_flag is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: else ...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No else, and it's intentional. if user set flag, cmake can have the option, otherwise the value will be the cmake default value.

@wenbingl wenbingl merged commit 2b50a82 into main Aug 17, 2023
36 of 38 checks passed
@wenbingl wenbingl deleted the pydbg branch August 17, 2023 23:54
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.

3 participants