Skip to content

Commit

Permalink
Try use build module for building wheel on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 4, 2024
1 parent 7219db2 commit 287086e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ jobs:
python -c "import struct; print(struct.calcsize('P') * 8)"
- name: Install Python dependencies
run: |
python -m pip install Cython Sphinx pytest wheel numpy twine
python -m pip install Cython Sphinx pytest wheel numpy twine build
- name: Create bdist_wheel
run: |
./cddlib-makefile-gmp.ps1
dir cddlib/lib-src/
if ("${{ matrix.architecture }}" -eq "x86") { $platform = "Win32" } else { $platform = "x64" }
mkdir dist -Force
pip wheel -w dist --global-option="build_ext" --global-option="-I$platform/Release/" --global-option="-L$platform/Release/" --no-deps .
python -m build --wheel -C="--global-option=build_ext" -C="--global-option=-I$platform/Release/" -C="--global-option=-L$platform/Release/" .
# pip wheel -w dist --global-option="build_ext" --global-option="-I$platform/Release/" --global-option="-L$platform/Release/" .
- name: Check files
run: twine check dist/*
- name: Upload wheel
Expand Down

0 comments on commit 287086e

Please sign in to comment.