Skip to content

try without setup-python and pip as build frontend #8

try without setup-python and pip as build frontend

try without setup-python and pip as build frontend #8

name: CI build wheels on Windows
on:
workflow_dispatch:
push:
branches:
- "win-CI"
jobs:
build_wheels:
name: Wheels on Windows for Python ${{ matrix.python }}
runs-on: windows-latest
env:
CIBW_TEST_COMMAND: python -s -c "import pysces; pysces.test(3)"
CIBW_ARCHS_WINDOWS: "AMD64"
strategy:
matrix:
# python: [311, 310, 39, 38]
python: [312]
steps:
- uses: actions/checkout@v3
# - uses: actions/setup-python@v3
# name: Install Python
# with:
# python-version: '3.12'
- name: Install rtools MinGW compilers
run: |
choco install rtools -y --no-progress --force --version=4.0.0.20220206
- name: Build wheels for CPython
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp${{ matrix.python }}-*"
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
CIBW_ENVIRONMENT_WINDOWS: >
CMAKE_GENERATOR="MSYS Makefiles"
PATH="c:\\rtools40\\ucrt64\\bin;c:\\rtools40\\usr\\bin;$PATH"
CIBW_BEFORE_BUILD: >
python -m pip install scikit-build meson cmake ninja &&
python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy==2.0.0.dev0
- uses: actions/upload-artifact@v3
with:
name: wheels_and_tarball
path: ./wheelhouse/*.whl