-
Notifications
You must be signed in to change notification settings - Fork 473
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
SNOW-237424 Declare dependency on setuptools #546
SNOW-237424 Declare dependency on setuptools #546
Conversation
Thanks @groodt |
@sfc-gh-mkeller We actually didn't see this error in Glue, we see it in CI when our tests fail. The error we see is:
We probably see it because we run with a reasonably hermetic Python setup with Bazel. It's probably similar with AWS Glue. It seems they want you to zip up site-packages. https://aws.amazon.com/premiumsupport/knowledge-center/glue-job-use-external-python-libraries/ I don't think the extra dependency should cause problems. Even though pip and setuptools are not part of the Python stdlib, it is still relatively difficult to create an environment to install packages without them. gunicorn includes it for example: https://github.com/benoitc/gunicorn/blob/94ab2091173c6037b504f94e56f4e88816d540bf/setup.py#L71-L77 If there are any tools which calculate the transitive closure of dependencies by fully traversing the dependency requirements (Bazel, perhaps conda too). Then it's more correct to declare the dependency. Demo:
You can see above, that For what it's worth, this error surfaced for us when snowflake-connector-python released version |
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.
🚢 🚢
The code makes use of modules that are not bundled with the Python standard library.
Ensure that "setuptools" is part of
install_requires