Skip to content

Commit

Permalink
adding uninstall and force-reinstall options
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc committed Dec 12, 2023
1 parent 398f088 commit 823717d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
run: |
python -m pytest tests/ --cov=primate --benchmark-skip
coverage report -m
- name: Uninstall the package
run: |
python -m pip uninstall primate -y
- name: Build a wheel
run: |
python -m build
Expand All @@ -78,7 +81,7 @@ jobs:
echo $env:wheel_name
- name: Install the wheel
run: |
python -m pip install --verbose ${{ env.WHEEL_NAME }}
python -m pip install --verbose ${{ env.WHEEL_NAME }} --force-reinstall
# - name: Repair the wheel
# run: |
# delvewheel repair $GITHUB_WORKSPACE/dist/*.whl
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ environment = { CC="/usr/local/opt/llvm/bin/clang", CXX="/usr/local/opt/llvm/bin
[tool.cibuildwheel.windows]
before-build = "bash {project}/tools/cibw_windows.sh"
environment = { PKG_CONFIG_PATH="C:/opt/64/lib/pkgconfig", CC="gcc", CXX="g++"}
# environment = { PKG_CONFIG_PATH="C:/opt/64/lib/pkgconfig", CC="clang", CXX="clang++"}
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
# before-build = "choco install rtools -y --no-progress --force --version=4.0.0.20220206 && set PATH=C:\\rtools40\\ucrt64\\bin\\;%PATH%"
# repair-wheel-command = "bash ./tools/repair_windows.sh {wheel} {dest_dir}"
Expand Down
1 change: 1 addition & 0 deletions tools/cibw_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ choco install rtools -y --no-progress --force --version=4.3.5550

export PATH=$PATH:/c/msys64/usr/bin:/c/msys64/mingw64/bin
export PATH=$PATH:/c:/rtools40/ucrt64/bin

# set PATH=C:\rtools40\ucrt64\bin\;%PATH%
# g++ --version

Expand Down

0 comments on commit 823717d

Please sign in to comment.