Skip to content

Commit 7551836

Browse files
committed
build fix
1 parent 775f72e commit 7551836

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.github/workflows/_build_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
echo "========================================"
6565
6666
# Extract Python version from wheel filename (e.g., cp39, cp310)
67-
python_tag=$(basename "$wheel" | grep -oP 'cp\d+' | head -1)
67+
python_tag=$(basename "$wheel" | grep -oE 'cp[0-9]+' | head -1)
6868
python_version="${python_tag:2:1}.${python_tag:3}"
6969
7070
echo "Setting up Python $python_version..."

.github/workflows/_build_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
fi
113113
114114
# Install the wheel in a fresh environment
115-
"$python_cmd" -m pip install --force-reinstall "$wheel"
115+
"$python_cmd" -m pip install --force-reinstall --break-system-packages "$wheel"
116116
117117
# Run the test script
118118
echo ""

.github/workflows/_build_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
echo "========================================"
109109
110110
# Extract Python version from wheel filename (e.g., cp39, cp310)
111-
python_tag=$(basename "$wheel" | grep -oP 'cp\d+' | head -1)
111+
python_tag=$(basename "$wheel" | grep -oE 'cp[0-9]+' | head -1)
112112
python_version="${python_tag:2:1}.${python_tag:3}"
113113
114114
echo "Setting up Python $python_version..."

scripts/linux/setup.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,22 @@ def get_link_args():
138138
"-lstdc++", # BoringSSL is C++ so we need the C++ standard library
139139
]
140140

141+
# Statically link liburing if available to avoid dynamic library dependency issues
141142
has_io_uring = check_io_uring_support()
142143
if has_io_uring:
143-
link_args.append("-luring")
144+
vendor_liburing = Path("vendor/liburing")
145+
# Try install directory first
146+
liburing_static = vendor_liburing / "install" / "lib" / "liburing.a"
147+
if not liburing_static.exists():
148+
# Fall back to src directory
149+
liburing_static = vendor_liburing / "src" / "liburing.a"
150+
151+
if liburing_static.exists():
152+
link_args.append(str(liburing_static))
153+
print(f"Static linking liburing from: {liburing_static}")
154+
else:
155+
print("WARNING: liburing.a not found, falling back to dynamic linking")
156+
link_args.append("-luring")
144157

145158
print("Static linking BoringSSL libraries with --whole-archive")
146159
return link_args

scripts/test_local_build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
4. Validates browser profiles and fingerprinting
1010
"""
1111

12-
import sys
1312
import os
13+
import sys
1414
import traceback
1515

1616

@@ -140,8 +140,8 @@ def test_simple_request():
140140
return True
141141

142142
# Try a simple GET request
143-
print("Making GET request to https://httpbin.org/get...")
144-
response = httpmorph.get("https://httpbin.org/get", timeout=10)
143+
print("Making GET request to https://icanhazip.com/...")
144+
response = httpmorph.get("https://icanhazip.com/", timeout=10)
145145

146146
if hasattr(response, 'status_code'):
147147
print(f"[OK] Request successful, status code: {response.status_code}")

0 commit comments

Comments
 (0)