Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ]
python-version: [ 3.8, 3.9, "3.10", "3.11" ]

env:
PYTHON_VERSION: ${{ matrix.python-version }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
# macos-13 runners have intel chips. macos-14 and above
# runners have Apple silicon chips.
os: [ ubuntu-latest, macos-13, windows-latest ]
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12"]
link_mkl: [true, false]

env:
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
else
BLAS_PKGS="blas-devel=*=*openblas"
fi
if [[ "$PYTHON_VERSION" == "3.7" ]] || [[ "$PYTHON_VERSION" == "3.8" ]] || [[ "$PYTHON_VERSION" == "3.9" ]]; then
if [[ "$PYTHON_VERSION" == "3.8" ]] || [[ "$PYTHON_VERSION" == "3.9" ]]; then
conda install scipy=1.5 numpy=1.19 pytest $BLAS_PKGS pkg-config
elif [[ "$PYTHON_VERSION" == "3.10" ]]; then
conda install scipy=1.7 numpy=1.21 pytest $BLAS_PKGS pkg-config
Expand All @@ -100,13 +100,13 @@ jobs:
fi
- name: Build
run: |
if [[ "$PYTHON_VERSION" == "3.7" ]] || [[ "$PYTHON_VERSION" == "3.8" ]]; then
if [[ "$PYTHON_VERSION" == "3.8" ]]; then
if [[ "$LINK_MKL" == "true" ]]; then
python legacy_setup.py install --scs --mkl
else
python legacy_setup.py install
fi
elif [[ "$PYTHON_VERSION" != "3.7" ]] && [[ "$PYTHON_VERSION" != "3.8" ]]; then
elif [[ "$PYTHON_VERSION" != "3.8" ]]; then
python -c "import numpy as np; print('NUMPY BLAS INFOS'); print(np.show_config())"
if [[ "$LINK_MKL" == "true" ]]; then
python -m pip install --verbose -Csetup-args=-Dlink_mkl=true .
Expand Down Expand Up @@ -143,8 +143,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-13 ]
python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
os: [ ubuntu-latest, macos-13, macos-latest ]
python-version: [ 3.8, 3.9, "3.10", "3.11", "3.12"]

env:
RUNNER_OS: ${{ matrix.os }}
Expand All @@ -171,10 +171,6 @@ jobs:
CIBW_BUILD: "cp3${{env.PYTHON_SUBVERSION}}-*"
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux*"
CIBW_BEFORE_ALL_LINUX: yum install -y openblas-devel
CIBW_BEFORE_ALL_MACOS: >
brew install openblas &&
cp -r /usr/local/opt/openblas/lib/* /usr/local/lib &&
cp /usr/local/opt/openblas/include/* /usr/local/include
CIBW_ENVIRONMENT_MACOS: CFLAGS='-Wno-error=implicit-function-declaration'
CIBW_BUILD_VERBOSITY: 3
CIBW_TEST_REQUIRES: pytest
Expand Down