Skip to content

Commit 794745c

Browse files
authored
Fix Homebrew paths in MacOS install instructions (#160)
Homebrew switched install locations a while back when Apple started shipping their own ARM processors on desktop, which broke the old install instructions. This updates the instructions to account for it.
1 parent bce3722 commit 794745c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,17 @@ This package was originally built as a component of EDGI’s [Web Monitoring Pro
4545

4646
The `--no-binary` flag ensures that pip downloads and builds a fresh copy of `lxml` (one of web-monitoring-diff’s dependencies) rather than using a pre-built version. It’s slower to install, but is required for all the dependencies to work correctly together. **If you publish a package that depends on web-monitoring-diff, your package will need to be installed with this flag, too.**
4747

48-
**On MacOS,** you may need additional configuration to get `pycurl` to use the Homebrew `openssl`. Try the following:
48+
**On MacOS,** you may need additional configuration to get `pycurl` to use the Homebrew `openssl`. Try one of the following:
4949

5050
```sh
51+
# Homebrew install locations vary by architechture.
52+
# For Apple silicon/ARM:
53+
PYCURL_SSL_LIBRARY=openssl \
54+
LDFLAGS="-L/opt/homebrew/opt/openssl/lib" \
55+
CPPFLAGS="-I/opt/homebrew/opt/openssl/include" \
56+
pip install web-monitoring-diff --no-binary lxml --no-cache-dir
57+
58+
# Or for Intel:
5159
PYCURL_SSL_LIBRARY=openssl \
5260
LDFLAGS="-L/usr/local/opt/openssl/lib" \
5361
CPPFLAGS="-I/usr/local/opt/openssl/include" \

0 commit comments

Comments
 (0)