Skip to content

Commit 26f64ea

Browse files
committed
fixing PATH issues
1 parent 2ad4b40 commit 26f64ea

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/build_wheels_and_release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
run: pip install cibuildwheel==2.20.0
2929

3030
- name: Build wheels
31-
run: python -m cibuildwheel --output-dir wheelhouse
31+
run: |
32+
python -m cibuildwheel --output-dir wheelhouse
3233
env:
33-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
34-
CIBW_BUILD_VERBOSITY: "1"
34+
CIBW_BUILD_VERBOSITY: "3"
35+
CIBW_ENVIRONMENT: PATH="$HOME/miniconda/bin:$PATH" LD_LIBRARY_PATH="$HOME/miniconda/lib:$LD_LIBRARY_PATH"
3536
working-directory: ./quaddtype
3637

3738
- uses: actions/upload-artifact@v2

quaddtype/pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ test = [
2727
[tool.cibuildwheel]
2828
archs = ["auto64"]
2929
skip = ["*-musllinux*", "pp*", "cp36-*", "cp37-*", "cp38-*"]
30+
test-command = "pytest {project}/tests"
31+
test-extras = ["test"]
3032

3133
[tool.cibuildwheel.linux]
3234
before-all = """
@@ -47,6 +49,12 @@ conda install -y -c conda-forge sleef
4749
"""
4850
environment = {PATH = "$HOME/miniconda/bin:$PATH", DYLD_LIBRARY_PATH = "$HOME/miniconda/lib:$DYLD_LIBRARY_PATH"}
4951

50-
[tool.cibuildwheel.windows]
52+
# [tool.cibuildwheel.windows]
53+
# before-all = """
54+
# powershell -Command "Invoke-WebRequest -Uri https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -OutFile miniconda.exe" &&
55+
# start /wait "" miniconda.exe /S /D=%UserProfile%\Miniconda3 &&
56+
# set PATH=%UserProfile%\Miniconda3;%UserProfile%\Miniconda3\Scripts;%PATH% &&
57+
# conda install -y -c conda-forge sleef
58+
# """
5159
before-build = "pip install delvewheel"
5260
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"

0 commit comments

Comments
 (0)