Skip to content

Commit e85d087

Browse files
authored
update macOS install docs (#13009)
homebrew is found by default, you need to pass `--no-binary cryptography` or you'll just get a wheel, and our MSRV is higher than that rust version
1 parent 57e2a9d commit e85d087

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/installation.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ development headers.
264264

265265
You will also need to have :ref:`Rust installed and
266266
available<installation:Rust>`, which can be obtained from `Homebrew`_,
267-
`MacPorts`_, or directly from the Rust website. If you are linking against a
268-
``universal2`` archive of OpenSSL, the minimum supported Rust version is
269-
1.66.0.
267+
`MacPorts`_, or directly from the Rust website.
270268

271269
Finally you need OpenSSL, which you can obtain from `Homebrew`_ or `MacPorts`_.
272270
Cryptography does **not** support the OpenSSL/LibreSSL libraries Apple ships
@@ -279,14 +277,14 @@ To build cryptography and dynamically link it:
279277
.. code-block:: console
280278
281279
$ brew install openssl@3 rust
282-
$ env OPENSSL_DIR="$(brew --prefix openssl@3)" pip install cryptography
280+
$ pip install --no-binary cryptography cryptography
283281
284282
`MacPorts`_:
285283

286284
.. code-block:: console
287285
288286
$ sudo port install openssl rust
289-
$ env OPENSSL_DIR="-L/opt/local" pip install cryptography
287+
$ env OPENSSL_DIR="-L/opt/local" pip install --no-binary cryptography cryptography
290288
291289
You can also build cryptography statically:
292290

@@ -295,14 +293,14 @@ You can also build cryptography statically:
295293
.. code-block:: console
296294
297295
$ brew install openssl@3 rust
298-
$ env OPENSSL_STATIC=1 OPENSSL_DIR="$(brew --prefix openssl@3)" pip install cryptography
296+
$ env OPENSSL_STATIC=1 pip install --no-binary cryptography cryptography
299297
300298
`MacPorts`_:
301299

302300
.. code-block:: console
303301
304302
$ sudo port install openssl rust
305-
$ env OPENSSL_STATIC=1 OPENSSL_DIR="/opt/local" pip install cryptography
303+
$ env OPENSSL_STATIC=1 OPENSSL_DIR="/opt/local" pip install --no-binary cryptography cryptography
306304
307305
If you need to rebuild ``cryptography`` for any reason be sure to clear the
308306
local `wheel cache`_.

0 commit comments

Comments
 (0)