Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 154c51d

Browse files
graingerthoefling
authored andcommitted
use build to build wheels
1 parent 9acc153 commit 154c51d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/linuxbrew.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
1919
brew update
2020
brew install python gcc libxml2 libxmlsec1 pkg-config
21-
pip3 install --upgrade setuptools wheel
21+
pip3 install --upgrade setuptools wheel build
2222
ln -s $(brew --prefix)/bin/gcc-11 $(brew --prefix)/bin/gcc-5
2323
- name: Build linux_x86_64 wheel
2424
run: |
25-
python3 setup.py bdist_wheel
25+
python3 -m build
2626
rm -rf build/
2727
- name: Install test dependencies
2828
run: |

.github/workflows/macosx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
python-version: ${{ matrix.python }}
1515
- name: Install build dependencies
1616
run: |
17-
pip install --upgrade pip setuptools wheel
17+
pip install --upgrade pip setuptools wheel build
1818
brew install libxml2 libxmlsec1 pkg-config
1919
- name: Build macosx_x86_64 wheel
2020
env:
2121
CC: clang
2222
CFLAGS: "-fprofile-instr-generate -fcoverage-mapping"
2323
LDFLAGS: "-fprofile-instr-generate -fcoverage-mapping"
2424
run: |
25-
python setup.py bdist_wheel
25+
python -m build
2626
rm -rf build/
2727
- name: Set environment variables
2828
shell: bash

.github/workflows/manylinux2010.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- name: Install build dependencies
1313
run: |
14-
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel
14+
/opt/python/${{ matrix.python-abi }}/bin/pip install --upgrade pip setuptools wheel build
1515
- name: Set environment variables
1616
shell: bash
1717
run: |
@@ -22,7 +22,7 @@ jobs:
2222
# disable libxml2-2.9.12 because of https://gitlab.gnome.org/GNOME/libxslt/-/issues/52
2323
PYXMLSEC_LIBXML2_VERSION: 2.9.10
2424
run: |
25-
/opt/python/${{ matrix.python-abi }}/bin/python setup.py bdist_wheel
25+
/opt/python/${{ matrix.python-abi }}/bin/python -m build
2626
- name: Label manylinux2010_x86_64 wheel
2727
run: |
2828
ls -la dist/

0 commit comments

Comments
 (0)