Skip to content

Commit 7e2099b

Browse files
authored
Merge pull request #504 from Distributive-Network/Xmader-patch-1
disable `aiodns`, fix futex deadlocks
2 parents 52a643b + a6f5145 commit 7e2099b

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
options:
1717
- ''
1818
- 'ubuntu-22.04'
19-
- 'macos-13'
19+
- 'macos-15-intel'
2020
- 'macos-14'
2121
- 'windows-2022'
2222
debug_enabled_python:
@@ -31,7 +31,7 @@ on:
3131
- '3.11'
3232
- '3.12'
3333
- '3.13'
34-
- '3.14-dev'
34+
- '3.14'
3535
build_type:
3636
type: choice
3737
description: 'Choose the build type to use'
@@ -67,8 +67,8 @@ jobs:
6767
strategy:
6868
fail-fast: false
6969
matrix:
70-
# Use Ubuntu 22.04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
71-
os: [ 'ubuntu-22.04', 'macos-13', 'macos-14', 'ubuntu-22.04-arm' ] # macOS 14 runner exclusively runs on M1 hardwares
70+
# Use Ubuntu 22.04 / macOS 15 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
71+
os: [ 'ubuntu-22.04', 'macos-15-intel', 'macos-14', 'ubuntu-22.04-arm' ] # macOS 14 runner exclusively runs on M1 hardwares
7272
# see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
7373
python_version: [ '3.10' ]
7474
runs-on: ${{ matrix.os }}
@@ -125,9 +125,9 @@ jobs:
125125
with:
126126
python-version: ${{ matrix.python_version }}
127127
- name: Setup XCode
128-
if: ${{ matrix.os == 'macos-13' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
129-
# SpiderMonkey requires XCode SDK version at least 13.3
130-
run: sudo xcode-select -switch /Applications/Xcode_14.3.app
128+
if: ${{ matrix.os == 'macos-15-intel' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
129+
# Xcode 16.x removed the old linker behaviour (-ld64 or -ld_classic) that SpiderMonkey relies on, so we need to switch to an older version
130+
run: sudo xcode-select -switch /Applications/Xcode_16.0.app
131131
- name: Build spidermonkey
132132
if: ${{ steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
133133
run: ./setup.sh
@@ -181,8 +181,8 @@ jobs:
181181
strategy:
182182
fail-fast: false
183183
matrix:
184-
os: [ 'ubuntu-22.04', 'macos-13', 'macos-14', 'windows-2022', 'ubuntu-22.04-arm' ]
185-
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14-dev' ]
184+
os: [ 'ubuntu-22.04', 'macos-15-intel', 'macos-14', 'windows-2022', 'ubuntu-22.04-arm' ]
185+
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]
186186
runs-on: ${{ matrix.os }}
187187
container: ${{ (startsWith(matrix.os, 'ubuntu') && 'ubuntu:20.04') || null }}
188188
steps:
@@ -220,10 +220,6 @@ jobs:
220220
echo "$HOME/.pyenv/shims" >> $GITHUB_PATH
221221
echo "PYENV_ROOT=$HOME/.pyenv" >> $GITHUB_ENV
222222
export PATH="$HOME/.pyenv/bin:$PATH"
223-
if [ "$PYTHON_VERSION" = "3.14-dev" ]; then
224-
# Replacing 3.14-dev with a pinned prerelease version for fast installation
225-
PYTHON_VERSION="3.14.0rc3"
226-
fi
227223
pyenv install $PYTHON_VERSION
228224
pyenv global $PYTHON_VERSION
229225
env:
@@ -293,7 +289,7 @@ jobs:
293289
BUILD_TYPE=${WORKFLOW_BUILD_TYPE:-"Debug"} poetry build --format=wheel
294290
ls -lah ./dist/
295291
- name: Make the wheels we build also support lower versions of macOS
296-
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }}
292+
if: ${{ matrix.os == 'macos-15-intel' || matrix.os == 'macos-14' }}
297293
# Change the platform tag part of the wheel filename to `macosx_11_0_xxx` (means to support macOS 11.0 and above)
298294
# See https://packaging.python.org/en/latest/specifications/binary-distribution-format/#file-format
299295
# A wheel package file will only be selected by pip to install if the platform tag satisfies, regardless of whether the binary compatibility actually is.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ include = [
3737
[tool.poetry.dependencies]
3838
python = "^3.8"
3939
pyreadline3 = { version = "^3.4.1", platform = "win32" }
40-
aiohttp = { version = "^3.9.5", extras = ["speedups"] }
40+
aiohttp = { version = "^3.9.5" }
4141
pminit = { version = ">=0.4.0", allow-prereleases = true }
4242

4343

@@ -83,4 +83,4 @@ ignore="E111,E114,E121" # allow 2-space indents
8383
verbose=true
8484
indent-size=2
8585
aggressive=3
86-
exit-code=true
86+
exit-code=true

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ else
2727
fi
2828
# Install rust compiler
2929
echo "Installing rust compiler"
30-
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.76
30+
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/rust-lang/rustup/refs/tags/1.28.2/rustup-init.sh -sSf | sh -s -- -y --default-host "$(clang --print-target-triple)" --default-toolchain 1.85
3131
CARGO_BIN="$HOME/.cargo/bin/cargo" # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
3232
$CARGO_BIN install cbindgen
3333
# Setup Poetry
@@ -127,4 +127,4 @@ if test -f .git/hooks/pre-commit; then
127127
fi
128128
cd ../..
129129
echo "Done building uncrustify"
130-
fi
130+
fi

0 commit comments

Comments
 (0)