Skip to content

Commit

Permalink
get build deps for free-threading
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 2, 2024
1 parent 4d90fa5 commit 8553e30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,12 @@ jobs:
pip install -r test-requirements.txt
- name: install free-threading dependencies
if: ${{ !matrix.free_threading }}
if: ${{ matrix.free_threading }}
run: |
pip install --upgrade --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
# need build deps for no-build-isolation
# remove after Cython 3.1
pip install scikit-build-core ninja packaging
pip install --upgrade --pre -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
- name: remove tornado
if: matrix.tornado == 'none'
Expand Down
6 changes: 4 additions & 2 deletions zmq/backend/cython/_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
from zmq.constants import SocketOption, _OptType
from zmq.error import InterruptedSystemCall, ZMQError, _check_version

IPC_PATH_MAX_LEN = get_ipc_path_max_len()
# IPC_PATH_MAX_LEN = get_ipc_path_max_len()


@cfunc
Expand Down Expand Up @@ -898,6 +898,8 @@ def bind(self, addr):
raise TypeError(f'expected str, got: {addr!r}')
c_addr = addr_b
rc = zmq_bind(self.handle, c_addr)
IPC_PATH_MAX_LEN = get_ipc_path_max_len()

if rc != 0:
if IPC_PATH_MAX_LEN and zmq_errno() == ENAMETOOLONG:
path = addr.split('://', 1)[-1]
Expand Down Expand Up @@ -1941,7 +1943,7 @@ def monitored_queue(


__all__ = [
'IPC_PATH_MAX_LEN',
# 'IPC_PATH_MAX_LEN',
'Context',
'Socket',
'Frame',
Expand Down

0 comments on commit 8553e30

Please sign in to comment.