If setup.py is present, the entry point is assumed to be a Python package even if the provided entry point is a shell script.
This PR changes the entry point behavior by first checking for a .sh entry point file extension.
Testing done:
Ran unit tests.
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
Issue #, if available: Fixes https://github.com/aws/sagemaker-training-toolkit/issues/75
Description of changes:
setup.py
is present, the entry point is assumed to be a Python package even if the provided entry point is a shell script..sh
entry point file extension.Testing done:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.