Skip to content

Conversation

benank
Copy link
Contributor

@benank benank commented Mar 16, 2022

Adds extra checks for Python in case it isn't in the path/environment variables.

Also changes exit code 51 to exit code 52, according to the Extensions Best Practices page. (missing dependency instead of unsupported OS)

@benank benank requested review from a team, kjohn-msft and rane-rajasi and removed request for a team March 16, 2022 21:08
@codecov
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #124 (403cd65) into master (825b518) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #124   +/-   ##
=======================================
  Coverage   80.64%   80.64%           
=======================================
  Files          86       86           
  Lines       11631    11631           
=======================================
  Hits         9380     9380           
  Misses       2251     2251           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 825b518...403cd65. Read the comment docs.

echo "No Python interpreter found on the box" >&2
exit 51 # Not Supported
echo "Python is required, but no Python interpreter was found on the box" >&2
exit 52
Copy link
Collaborator

@kjohn-msft kjohn-msft Mar 16, 2022

Choose a reason for hiding this comment

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

What's the error code mapping for 52? Please leave that as a comment as before in the code.

Copy link
Contributor Author

@benank benank Mar 16, 2022

Choose a reason for hiding this comment

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

Error code mapping for 52 is missing dependency; error code 51 is unsupported OS. Added link with more information in comment.

Copy link
Collaborator

@kjohn-msft kjohn-msft left a comment

Choose a reason for hiding this comment

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

Minor comment ask.

@benank benank requested a review from kjohn-msft March 16, 2022 22:00
@benank benank merged commit 0305b5d into master Mar 16, 2022
@benank benank deleted the bankiel-python-path-fix branch March 16, 2022 22:20
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