Skip to content

Commit

Permalink
delvewheel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc committed Dec 8, 2023
1 parent 0afc8d8 commit 065640c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ jobs:
coverage report -m
- name: Build a wheel
run: |
python -m pip wheel --no-deps --only-binary --wheel-dir $GITHUB_WORKSPACE/wheelhouse .
python -m pip wheel . --no-deps --wheel-dir dist
# $GITHUB_WORKSPACE/wheelhouse .
# delvewheel repair -w dist -v wheelhouse/*.whl
# python -m build --wheel
# $env:wheel_name=Get-ChildItem -Path dist/* -Include *.whl
# delvewheel repair -w dist $env:wheel_name
- name: Repair the wheel
run: |
bash tools/repair_windows.sh
delvewheel repair dist/*.whl
# bash tools/repair_windows.sh
- name: Uninstall the package
run: |
Expand All @@ -83,7 +85,9 @@ jobs:
# python -m pip install $(find "$output_dir" -type f | grep *primate*.whl)
# python -m pip install $env:wheel_name
run: |
# python -m pip install dist/*.whl
python -m pip install dist/*.whl
pip install delvewheel
delvewheel repair dist/*.whl
- name: Wheel dry-run
run: |
python -c "import primate; print(primate.__version__)"
Expand Down
3 changes: 3 additions & 0 deletions tools/cibw_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export PATH=$PATH:/c:/rtools40/ucrt64/bin:$PATH
# set PATH=C:\rtools40\ucrt64\bin\;%PATH%
g++ --version

# Create a a set commands to install mingw64 on windows-2019 server for compiling native Python extension modules


# $env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
# Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
# refreshenv
4 changes: 2 additions & 2 deletions tools/repair_windows.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set -xe

WHEELDIR=$GITHUB_WORKSPACE/wheelhouse
WHEELNAME=$(find "$WHEELDIR" -type f | grep *primate*.whl)
# WHEELDIR=$GITHUB_WORKSPACE/wheelhouse
# WHEELNAME=$(find "$WHEELDIR" -type f | grep *primate*.whl)

# strip .local/bin/*.dll

Expand Down

0 comments on commit 065640c

Please sign in to comment.