Skip to content

Commit

Permalink
Merge pull request #294 from mauricelam/wasm-cryptography
Browse files Browse the repository at this point in the history
Make cryptography a valid dependency for emscripten targets
  • Loading branch information
barbibulle committed Sep 26, 2023
2 parents 4c29a16 + 772c188 commit c12dee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ install_requires =
bt-test-interfaces >= 0.0.2; platform_system!='Emscripten'
click == 8.1.3; platform_system!='Emscripten'
cryptography == 39; platform_system!='Emscripten'
# Pyodide bundles a version of cryptography that is built for wasm, which may not match the
# versions available on PyPI. Relax the version requirement since it's better than being
# completely unable to import the package in case of version mismatch.
cryptography >= 39.0; platform_system=='Emscripten'
grpcio == 1.57.0; platform_system!='Emscripten'
humanize >= 4.6.0; platform_system!='Emscripten'
libusb1 >= 2.0.1; platform_system!='Emscripten'
Expand Down
1 change: 0 additions & 1 deletion web/bumble.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export async function loadBumble(pyodide, bumblePackage) {
await pyodide.loadPackage("micropip");
await pyodide.runPythonAsync(`
import micropip
await micropip.install("cryptography")
await micropip.install("${bumblePackage}")
package_list = micropip.list()
print(package_list)
Expand Down

0 comments on commit c12dee4

Please sign in to comment.