Browse Source

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]
```
master
SomberNight 4 years ago
parent
commit
6c05de6fb9
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      README.rst
  2. 19
      contrib/osx/notes_for_arm.md

2
README.rst

@ -35,7 +35,7 @@ but not everything. The following sections describe how to run from source, but
is a TL;DR:: is a TL;DR::
sudo apt-get install libsecp256k1-0 sudo apt-get install libsecp256k1-0
python3 -m pip install --user .[gui,crypto] python3 -m pip install --user ".[gui,crypto]"
Not pure-python dependencies Not pure-python dependencies

19
contrib/osx/notes_for_arm.md

@ -10,24 +10,19 @@ $ cd electrum
$ git submodule update --init $ 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: 2. Install libsecp256k1
```
$ pip install cryptography
```
3. Install libsecp256k1
``` ```
$ contrib/make_libsecp256k1.sh $ 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 $ brew install pyqt5
@ -36,14 +31,14 @@ $ echo 'export PATH="/opt/homebrew/opt/pyqt@5/5.15.4_1/bin:$PATH"' >> ~/.zshrc
$ source ~/.zshrc $ source ~/.zshrc
``` ```
Finally, try it in python to ensure it works: Try it in python to ensure it works:
``` ```
$ python3 $ python3
>>> import PyQt5 >>> import PyQt5
``` ```
5. Run electrum: 4. Run electrum:
``` ```
$ ./run_electrum $ ./run_electrum

Loading…
Cancel
Save