Skip to content

Commit

Permalink
windows build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc committed Dec 7, 2023
1 parent 44ce5de commit aed42aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ jobs:
coverage report -m
- name: Build a wheel
run: |
python -m build --wheel
python -m pip wheel --no-deps -w 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: Uninstall the package
Expand All @@ -77,11 +79,7 @@ jobs:
# python -m pip install $(find "$output_dir" -type f | grep *primate*.whl)
# python -m pip install $env:wheel_name
run: |
set PROJ_WHEEL=true
FOR %%F IN (dist\*.whl) DO (set PYPROJ_WHEEL=%%F)
delvewheel repair %PYPROJ_WHEEL%
FOR %%F IN (wheelhouse\*.whl) DO (set PYPROJ_WHEEL=%%F)
python -m pip install %PYPROJ_WHEEL%
python -m pip install dist/*.whl
- name: Wheel dry-run
run: |
python -c "import primate; print(primate.__version__)"
Expand Down
7 changes: 5 additions & 2 deletions tools/cibw_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@

choco install rtools -y --no-progress --force --version=4.0.0.20220206
set PATH=C:\rtools40\ucrt64\bin\;%PATH%
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RefreshEnv.cmd
g++ --version

# $env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.."
# Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
# refreshenv

0 comments on commit aed42aa

Please sign in to comment.