Skip to content

Commit

Permalink
test with ipc
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 23, 2024
1 parent 9c25307 commit 55ca799
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ endif()
if (PYZMQ_LIBZMQ_VERSION AND NOT PYZMQ_LIBZMQ_URL)
set(PYZMQ_LIBZMQ_URL "https://github.com/zeromq/libzmq/releases/download/v${PYZMQ_LIBZMQ_VERSION}/zeromq-${PYZMQ_LIBZMQ_VERSION}.tar.gz")
endif()
set(PYZMQ_LIBZMQ_URL "https://github.com/minrk/libzmq/archive/ipc-can-fail.tar.gz")

#------- bundle libzmq ------

Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ repair-wheel-command = """\
"cmake.define.CMAKE_SHARED_LINKER_FLAGS" = "ucrt.lib;vcruntime.lib;/nodefaultlib:libucrt.lib;/nodefaultlib:libvcruntime.lib"
# disable IPC/epoll on Windows
# due to https://github.com/zeromq/pyzmq/issues/1981
"cmake.define.ZMQ_HAVE_IPC" = "OFF"
"cmake.define.POLLER" = "select"
# "cmake.define.ZMQ_HAVE_IPC" = "OFF"
# "cmake.define.POLLER" = "select"
"cmake.define.PYZMQ_LIBZMQ_URL" = "https://github.com/minrk/libzmq/archive/ipc-can-fail.tar.gz"


# mac-arm target is 10.15
[[tool.cibuildwheel.overrides]]
Expand Down
12 changes: 6 additions & 6 deletions tools/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
def test_has(feature):
import zmq

if feature == 'ipc' and sys.platform.startswith('win32'):
# IPC support is broken in enough cases on Windows
# that we can't ship wheels with it (for now)
assert not zmq.has(feature)
else:
assert zmq.has(feature)
# if feature == 'ipc' and sys.platform.startswith('win32'):
# # IPC support is broken in enough cases on Windows
# # that we can't ship wheels with it (for now)
# assert not zmq.has(feature)
# else:
assert zmq.has(feature)


def test_simple_socket():
Expand Down

0 comments on commit 55ca799

Please sign in to comment.