From 6c05de6fb93950973795ba870e1d8ef5324528e9 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 8 Apr 2022 20:22:50 +0200 Subject: [PATCH] osx arm notes: simplify note: `pip install ".[crypto]"` needs quotes on macOS, at least in the default `zsh` shell. The quotes are not needed on Ubuntu using bash, or on Windows using powershell. ``` user@users-iMac electrum % python3 -m pip install --user -e .[crypto] zsh: no matches found: .[crypto] ``` --- README.rst | 2 +- contrib/osx/notes_for_arm.md | 19 +++++++------------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/README.rst b/README.rst index 5c68775f9..34ffc4041 100644 --- a/README.rst +++ b/README.rst @@ -35,7 +35,7 @@ but not everything. The following sections describe how to run from source, but is a TL;DR:: sudo apt-get install libsecp256k1-0 - python3 -m pip install --user .[gui,crypto] + python3 -m pip install --user ".[gui,crypto]" Not pure-python dependencies diff --git a/contrib/osx/notes_for_arm.md b/contrib/osx/notes_for_arm.md index 43f6e29a8..bfc163b46 100644 --- a/contrib/osx/notes_for_arm.md +++ b/contrib/osx/notes_for_arm.md @@ -10,24 +10,19 @@ $ cd electrum $ git submodule update --init ``` -Run install (this should install dependencies): +Run install (this should install most dependencies): ``` -python3 -m pip install --user -e . +$ python3 -m pip install --user -e ".[crypto]" ``` -2. cryptography and will need to be manually installed. It will mention pycryptodomex, but prefer cryptography: - -``` -$ pip install cryptography -``` - -3. Install libsecp256k1 +2. Install libsecp256k1 ``` $ contrib/make_libsecp256k1.sh ``` -4. `pip install pyqt5` will work on intel x86, however for M1, to bypass pyqt5 install issue, do the following: +3. `pip install pyqt5` would work on intel x86, however there are no prebuilt wheels on PyPI for M1. +As a workaround, we can install it from brew: ``` $ brew install pyqt5 @@ -36,14 +31,14 @@ $ echo 'export PATH="/opt/homebrew/opt/pyqt@5/5.15.4_1/bin:$PATH"' >> ~/.zshrc $ source ~/.zshrc ``` -Finally, try it in python to ensure it works: +Try it in python to ensure it works: ``` $ python3 >>> import PyQt5 ``` -5. Run electrum: +4. Run electrum: ``` $ ./run_electrum