Last active
July 14, 2021 01:38
-
-
Save calvinchengx/b98bb80ab8257d531c19db8303010b74 to your computer and use it in GitHub Desktop.
Installing cryptography and friends with poetry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# initialise and configure a pyproject.toml file (similar to Cargo.toml) | |
poetry init | |
# python's cryptography package requires openssl and rust | |
brew install openssl rust | |
env LDFLAGS="-L$(brew --prefix [email protected])/lib" CFLAGS="-I$(brew --prefix [email protected])/include" poetry add cryptography | |
# then the rest | |
poetry add pycryptodome pynacl progressbar2 pyusb | |
source .venv/bin/activate | |
python -c "import Crypto; print(Crypto.__version__)" | |
python -c "import cryptography; print(cryptography.__version__)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment