Skip to content
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

fix: cryptography for fernet key gen #372

Open
wants to merge 1 commit into
base: v2.8.1
Choose a base branch
from

Conversation

khannz
Copy link

@khannz khannz commented Apr 16, 2024

Issue #, if available: #350

Description of changes: package 'cryptography' was installed for system python (which is 3.9) via apt. Since during build we replace system python with 3.11(.7) and later use it as primary one, it is required to install package cryptography via pip with root permissions to be available system-wide.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@khannz khannz changed the title fix: cryptography for fernet key gen (#350) fix: cryptography for fernet key gen Apr 16, 2024
pushd /python_install/$python_file
./configure
make install -j $(nproc) # use -j to set the cores for the build
popd

# Upgrade pip
pip3 install $PIP_OPTION --upgrade 'pip<23'
pip3 install $PIP_OPTION --upgrade 'pip<23' cryptography
Copy link

@maanijou maanijou Apr 26, 2024

Choose a reason for hiding this comment

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

Minor: This can be a completely new line like this:

# Needed for generating fernet key for local runner
pip3 install  --constraint /constraints.txt cryptography

@maanijou
Copy link

+1 for the change. This also exist on MWAA 2.7.2 and probably some other versions

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