Skip to content

Commit

Permalink
Merge pull request #1980 from minrk/libsodium-url
Browse files Browse the repository at this point in the history
download libsodium from github release
  • Loading branch information
minrk committed Apr 19, 2024
2 parents 928f4cb + 469d307 commit 7390fbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if(ZMQ_DRAFT_API)
endif()

if (PYZMQ_LIBSODIUM_VERSION AND NOT PYZMQ_LIBSODIUM_URL)
set(PYZMQ_LIBSODIUM_URL "https://download.libsodium.org/libsodium/releases/libsodium-${PYZMQ_LIBSODIUM_VERSION}.tar.gz")
set(PYZMQ_LIBSODIUM_URL "https://github.com/jedisct1/libsodium/releases/download/${PYZMQ_LIBSODIUM_VERSION}-RELEASE/libsodium-${PYZMQ_LIBSODIUM_VERSION}.tar.gz")
endif()

if (PYZMQ_LIBZMQ_VERSION AND NOT PYZMQ_LIBZMQ_URL)
Expand Down
5 changes: 5 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ For a full changelog, consult the [git log](https://github.com/zeromq/pyzmq/comm

## 26

### 26.0.2

- When bundling libsodium, download from libsodium's releases on GitHub instead of download.libsodium.org,
which appears to error frequently.

### 26.0.1

- Fix install from source with cmake \< 3.21
Expand Down
2 changes: 1 addition & 1 deletion tools/install_libzmq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi

PREFIX="${ZMQ_PREFIX:-/usr/local}"

curl -L -O "https://download.libsodium.org/libsodium/releases/libsodium-${LIBSODIUM_VERSION}.tar.gz"
curl -L -O "https://github.com/jedisct1/libsodium/releases/download/${LIBSODIUM_VERSION}-RELEASE/libsodium-${LIBSODIUM_VERSION}.tar.gz"

curl -L -O "https://github.com/zeromq/libzmq/releases/download/v${LIBZMQ_VERSION}/zeromq-${LIBZMQ_VERSION}.tar.gz"

Expand Down

0 comments on commit 7390fbf

Please sign in to comment.