Skip to content

Commit

Permalink
put --no-binary pyzmq on the end
Browse files Browse the repository at this point in the history
so we don't have the confusing double `pyzmq pyzmq` argument,
which looks like a typo
  • Loading branch information
minrk committed Feb 21, 2024
1 parent 4146cb8 commit 28d517e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/source/howto/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ brew install zeromq
You can install pyzmq from source with `pip` by telling it `--no-binary pyzmq`:

```
python3 -m pip install --no-binary pyzmq pyzmq
python3 -m pip install pyzmq --no-binary pyzmq
```

or an editable install from a local checkout:
Expand All @@ -47,15 +47,15 @@ Build a wheel against already-installed libzmq:

```bash
export ZMQ_PREFIX=/usr/local
python3 -m pip install --no-binary pyzmq pyzmq
python3 -m pip install pyzmq --no-binary pyzmq
```

Force building bundled libzmq with the draft API:

```bash
export ZMQ_PREFIX=bundled
export ZMQ_BUILD_DRAFT=1
python3 -m pip install --no-binary pyzmq pyzmq
python3 -m pip install pyzmq --no-binary pyzmq
```

## Finding libzmq
Expand Down
4 changes: 2 additions & 2 deletions docs/source/howto/draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ And then build pyzmq with draft support:
```bash
export ZMQ_PREFIX=${PREFIX}
export ZMQ_DRAFT_API=1
pip install -v --no-binary pyzmq pyzmq
pip install -v pyzmq --no-binary pyzmq
```

By specifying `--no-binary pyzmq`, pip knows to not install wheels, and will compile pyzmq from source.
By specifying `--no-binary pyzmq`, pip knows to not install the pre-built wheels, and will compile pyzmq from source.

The `ZMQ_PREFIX=$PREFIX` part is only necessary if libzmq is installed somewhere not on the default search path.
If libzmq is installed in {file}`/usr/local` or similar,
Expand Down

0 comments on commit 28d517e

Please sign in to comment.