Skip to content

Commit

Permalink
Fix pipeline, attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Apr 26, 2024
1 parent c84306b commit ce4c39a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64,s390x,ppc64le
- name: Install Python build dependencies
run: python3 -m pip install build cibuildwheel
- name: Install cibuildwheel
run: python3 -m pip install cibuildwheel
- name: Build (linux-buildwheel.py)
run: python3 bindings/python/build/linux-buildwheel.py --install-targets --archs all
- uses: actions/upload-artifact@v4
Expand Down
9 changes: 6 additions & 3 deletions bindings/python/build/linux-buildwheel.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/env python3

# Make relative imports work
__package__ = "build"

import argparse
import os
import sys
from pathlib import Path
from typing import List, Optional

# Make relative imports work
sys.path.append(str(Path(__file__).parent.parent))
__package__ = "build"

import cibuildwheel.__main__

Check failure on line 13 in bindings/python/build/linux-buildwheel.py

View workflow job for this annotation

GitHub Actions / Lint & Doc

Import "cibuildwheel.__main__" could not be resolved (reportMissingImports)
import cibuildwheel.options

Check failure on line 14 in bindings/python/build/linux-buildwheel.py

View workflow job for this annotation

GitHub Actions / Lint & Doc

Import "cibuildwheel.options" could not be resolved (reportMissingImports)

Expand Down

0 comments on commit ce4c39a

Please sign in to comment.