-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
airbyte-ci: Clean all pyenv shims #33080
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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.
since we're using it for url lib, maybe hook-urllib.py
?
|
||
def get_ssl_context(): | ||
""" | ||
Returns an ssl.SSLContext object with the custom certificate file if certifi is installed, otherwise |
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.
otherwise?
Returns the path to the custom certificate file if certifi is installed, otherwise None. | ||
|
||
HACK: This is a workaround for the fact that the pyinstaller binary does not know how or where to | ||
find the ssl certificates file. This is a problem because the binary is built on a different system |
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.
find the ssl certificates file. This is a problem because the binary is built on a different system | |
find the ssl certificates file. This happens because the binary is built on a different system |
WHY: this works when certifi is not found: | ||
If you run this file directly, it will use the system python interpreter and will be able to find | ||
the ssl certificates file. | ||
|
||
WHY: this works when certifi is found: | ||
When this file is run by the pyinstaller binary, it is through the pipelines project, which has | ||
certifi installed. This means that when this file is run by the pyinstaller binary, it will be able | ||
to find the ssl certificates file in the certifi package. |
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.
This is great. I'd add "e.g. when running in dev mode" to the top.
Co-authored-by: erohmensing <erohmensing@gmail.com> Co-authored-by: bnchrch <bnchrch@users.noreply.github.com>
Problem
When you uninstall
pipelines
(e.g.airbyte-ci
) from pyenv, it can be readded if it exists in anyother pyenv paths viapyenv init -
. A common line in users.zshrc
fileSolution
Clean out any path located at
pyenv whence --path airbyte-ci
closes #33086