Skip to content

Commit

Permalink
Support for using embedded manylinux static libraries (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte authored May 29, 2022
1 parent 15a08fe commit 2b47cdf
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ on:
workflow_dispatch:

jobs:
windows:
runs-on: windows-latest
build_wheel_windows:
strategy:
matrix:
os: [windows-latest]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
architecture: [x86, x64]
name: Build [Windows ${{ matrix.architecture }}][Python ${{ matrix.python-version }}]
name: Build [${{ matrix.os }} ${{ matrix.architecture }}][Python ${{ matrix.python-version }}]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand Down Expand Up @@ -40,9 +41,29 @@ jobs:
with:
name: cx-freeze-wheelhouse
path: wheelhouse
build_wheel_unix:
strategy:
matrix:
os: [ubuntu-latest]
name: Build [${{ matrix.os }}] using cibuildwheel
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cibuildwheel==2.5.0
- name: Build the wheel
run: python -m cibuildwheel
- name: Upload the artifact
uses: actions/upload-artifact@v2
with:
name: cx-freeze-wheelhouse
path: wheelhouse
publish:
needs: windows
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: Publish package to PyPI
steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,12 @@ reports.output-format = "colorized"
minversion = "6.0"
addopts = "-ra"
testpaths = ["tests"]

[tool.cibuildwheel]
build-frontend = "build"
build-verbosity = "1"

[tool.cibuildwheel.linux]
before-build = "(cd /opt/_internal && tar -xvf static-libs-for-embedding-only.tar.xz)"
build = "cp3*-manylinux_x86_64"
repair-wheel-command = "auditwheel repair -L /bases/lib -w {dest_dir} {wheel}"
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ patchelf>=0.12 ;sys_platform == 'linux'
bump2version>=1.0.1
pre-commit>=2.17.0
pylint>=2.13.0
cibuildwheel==2.5.0 ;sys_platform == 'linux'
#doc
sphinx==4.5.0
sphinx-rtd-theme==1.0.0
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dev =
bump2version>=1.0.1
pre-commit>=2.17.0
pylint>=2.13.0
cibuildwheel==2.5.0 ;sys_platform == 'linux'
doc =
sphinx==4.5.0
sphinx-rtd-theme==1.0.0
Expand Down

0 comments on commit 2b47cdf

Please sign in to comment.