Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
What would happen if I have the wrong Python version? Would it scream loud or error silently?
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.
Calling
dh_make
with the wrong Python version results in errors.dh_make
2.201701 (the new version) with Python 2 gives a module dependency error:dh_make
2.201608 (the old version) with Python 3 even results in a syntax error:So in both cases, we get an error.
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.
However, we should, perhaps, require
dh_make
to succeed for any of the later commands. In this way, make would get an error exit code and report the version mismatch more nicely.Currently, the result would be a
file not found
error toward the end of the Makefile.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.
By the way, I’d like to call
dh_make
withoutpython
and to rely on a proper shebang declaration. However,dh_make
as of 2.201608 declares/usr/bin/python
as its interpreter without specifying the required Python version explicitly. This is unfortunate, because now, we have to care about the correct version. However,dh_make
2.201701 has a proper interpreter directive (/usr/bin/python3
).