Skip to content

Commit 8ffa11e

Browse files
committed
BUG: Disable Intel Mac Python package builds
macos-12 GitHub Runner images are no longer available in GitHub Actions. With ITK 5.4.1, we will build packages compatible with the macos-13 images.
1 parent e4e1daa commit 8ffa11e

1 file changed

Lines changed: 69 additions & 69 deletions

File tree

.github/workflows/build-test-package-python.yml

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -131,74 +131,74 @@ jobs:
131131
name: LinuxWheel3${{ matrix.python3-minor-version }}${{ matrix.manylinux-platform }}
132132
path: dist/*.whl
133133

134-
build-macos-py:
135-
runs-on: macos-12
136-
strategy:
137-
max-parallel: 2
138-
matrix:
139-
python3-minor-version: ${{ fromJSON(inputs.python3-minor-versions) }}
140-
141-
steps:
142-
- uses: actions/checkout@v3
143-
144-
- name: 'Specific XCode version'
145-
run: |
146-
sudo xcode-select -s "/Applications/Xcode_13.2.1.app"
147-
148-
- name: Get specific version of CMake, Ninja
149-
uses: lukka/get-cmake@v3.29.0
150-
151-
- name: 'Fetch build script'
152-
run: |
153-
IPP_DOWNLOAD_GIT_TAG=${{ inputs.itk-python-package-tag }}
154-
IPP_DOWNLOAD_ORG=${{ inputs.itk-python-package-org }}
155-
curl -L https://raw.githubusercontent.com/${IPP_DOWNLOAD_ORG:=InsightSoftwareConsortium}/ITKPythonPackage/${IPP_DOWNLOAD_GIT_TAG:=master}/scripts/macpython-download-cache-and-build-module-wheels.sh -O
156-
chmod u+x macpython-download-cache-and-build-module-wheels.sh
157-
158-
- name: 'Build 🐍 Python 📦 package'
159-
shell: bash
160-
run: |
161-
rm -rf dist
162-
163-
export ITK_PACKAGE_VERSION=${{ inputs.itk-wheel-tag }}
164-
export ITKPYTHONPACKAGE_TAG=${{ inputs.itk-python-package-tag }}
165-
export ITKPYTHONPACKAGE_ORG=${{ inputs.itk-python-package-org }}
166-
export ITK_MODULE_PREQ=${{ inputs.itk-module-deps }}
167-
export MACOSX_DEPLOYMENT_TARGET=10.9
168-
if [ -z ${{ inputs.cmake-options }} ]; then
169-
CMAKE_OPTIONS=""
170-
else
171-
CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}"
172-
fi
173-
./macpython-download-cache-and-build-module-wheels.sh $CMAKE_OPTIONS "3.${{ matrix.python3-minor-version }}"
174-
175-
- name: Set up Python 3.11 for Validation
176-
uses: actions/setup-python@v5
177-
with:
178-
python-version: "3.11"
179-
180-
- name: Validate build output
181-
shell: bash
182-
run: |
183-
python -m pip install twine
184-
ls dist/
185-
186-
WHEEL_PATTERN="dist/itk_*macosx*.whl"
187-
EXPECTED_WHEEL_COUNT=1
188-
189-
WHEEL_COUNT=`(ls ${WHEEL_PATTERN} | wc -l)`
190-
if (( ${WHEEL_COUNT} != ${EXPECTED_WHEEL_COUNT} )); then
191-
echo "Expected ${EXPECTED_WHEEL_COUNT} wheels but found ${WHEEL_COUNT}"
192-
exit 1
193-
fi
194-
195-
python -m twine check ${WHEEL_PATTERN}
196-
197-
- name: Publish Python package as GitHub Artifact
198-
uses: actions/upload-artifact@v4
199-
with:
200-
name: MacOSWheel3${{ matrix.python3-minor-version }}
201-
path: dist/*.whl
134+
#build-macos-py:
135+
#runs-on: macos-12
136+
#strategy:
137+
#max-parallel: 2
138+
#matrix:
139+
#python3-minor-version: ${{ fromJSON(inputs.python3-minor-versions) }}
140+
141+
#steps:
142+
#- uses: actions/checkout@v3
143+
144+
#- name: 'Specific XCode version'
145+
#run: |
146+
#sudo xcode-select -s "/Applications/Xcode_13.2.1.app"
147+
148+
#- name: Get specific version of CMake, Ninja
149+
#uses: lukka/get-cmake@v3.29.0
150+
151+
#- name: 'Fetch build script'
152+
#run: |
153+
#IPP_DOWNLOAD_GIT_TAG=${{ inputs.itk-python-package-tag }}
154+
#IPP_DOWNLOAD_ORG=${{ inputs.itk-python-package-org }}
155+
#curl -L https://raw.githubusercontent.com/${IPP_DOWNLOAD_ORG:=InsightSoftwareConsortium}/ITKPythonPackage/${IPP_DOWNLOAD_GIT_TAG:=master}/scripts/macpython-download-cache-and-build-module-wheels.sh -O
156+
#chmod u+x macpython-download-cache-and-build-module-wheels.sh
157+
158+
#- name: 'Build 🐍 Python 📦 package'
159+
#shell: bash
160+
#run: |
161+
#rm -rf dist
162+
163+
#export ITK_PACKAGE_VERSION=${{ inputs.itk-wheel-tag }}
164+
#export ITKPYTHONPACKAGE_TAG=${{ inputs.itk-python-package-tag }}
165+
#export ITKPYTHONPACKAGE_ORG=${{ inputs.itk-python-package-org }}
166+
#export ITK_MODULE_PREQ=${{ inputs.itk-module-deps }}
167+
#export MACOSX_DEPLOYMENT_TARGET=10.9
168+
#if [ -z ${{ inputs.cmake-options }} ]; then
169+
#CMAKE_OPTIONS=""
170+
#else
171+
#CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}"
172+
#fi
173+
#./macpython-download-cache-and-build-module-wheels.sh $CMAKE_OPTIONS "3.${{ matrix.python3-minor-version }}"
174+
175+
#- name: Set up Python 3.11 for Validation
176+
#uses: actions/setup-python@v5
177+
#with:
178+
#python-version: "3.11"
179+
180+
#- name: Validate build output
181+
#shell: bash
182+
#run: |
183+
#python -m pip install twine
184+
#ls dist/
185+
186+
#WHEEL_PATTERN="dist/itk_*macosx*.whl"
187+
#EXPECTED_WHEEL_COUNT=1
188+
189+
#WHEEL_COUNT=`(ls ${WHEEL_PATTERN} | wc -l)`
190+
#if (( ${WHEEL_COUNT} != ${EXPECTED_WHEEL_COUNT} )); then
191+
#echo "Expected ${EXPECTED_WHEEL_COUNT} wheels but found ${WHEEL_COUNT}"
192+
#exit 1
193+
#fi
194+
195+
#python -m twine check ${WHEEL_PATTERN}
196+
197+
#- name: Publish Python package as GitHub Artifact
198+
#uses: actions/upload-artifact@v4
199+
#with:
200+
#name: MacOSWheel3${{ matrix.python3-minor-version }}
201+
#path: dist/*.whl
202202

203203
build-macos-arm-py:
204204
runs-on: macos-14
@@ -399,9 +399,9 @@ jobs:
399399
publish-python-packages-to-pypi:
400400
needs:
401401
- build-linux-py
402-
- build-macos-py
403402
- build-macos-arm-py
404403
- build-windows-python-packages
404+
#- build-macos-py
405405
runs-on: ubuntu-22.04
406406

407407
steps:

0 commit comments

Comments
 (0)