-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_cibuildwheel.sh
More file actions
41 lines (31 loc) · 975 Bytes
/
test_cibuildwheel.sh
File metadata and controls
41 lines (31 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Script to test cibuildwheel locally on Linux
set -e # Exit on error
echo "=== Testing cibuildwheel locally ==="
echo ""
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "Error: Docker is not running. Please start Docker and try again."
exit 1
fi
# Install cibuildwheel if not already installed
if ! command -v cibuildwheel &> /dev/null; then
echo "Installing cibuildwheel..."
pip install cibuildwheel
fi
# Set platform to Linux
export CIBW_PLATFORM=linux
# Optional: Build only one Python version for faster testing
# Uncomment to test with just Python 3.11
# export CIBW_BUILD="cp311-*"
# Optional: Enable verbose output
# export CIBW_BUILD_VERBOSITY=3
echo "Starting cibuildwheel build for Linux..."
echo "This will use Docker to build manylinux wheels."
echo ""
# Run cibuildwheel
cibuildwheel --platform linux
echo ""
echo "=== Build complete ==="
echo "Wheels are in: ./wheelhouse/"
ls -lh ./wheelhouse/