-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Disable Intel Mac Python package builds #104
Merged
thewtex
merged 1 commit into
InsightSoftwareConsortium:v5.4.0
from
thewtex:disable-intel-macos
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,74 +131,74 @@ jobs: | |
name: LinuxWheel3${{ matrix.python3-minor-version }}${{ matrix.manylinux-platform }} | ||
path: dist/*.whl | ||
|
||
build-macos-py: | ||
runs-on: macos-12 | ||
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python3-minor-version: ${{ fromJSON(inputs.python3-minor-versions) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: 'Specific XCode version' | ||
run: | | ||
sudo xcode-select -s "/Applications/Xcode_13.2.1.app" | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/[email protected] | ||
|
||
- name: 'Fetch build script' | ||
run: | | ||
IPP_DOWNLOAD_GIT_TAG=${{ inputs.itk-python-package-tag }} | ||
IPP_DOWNLOAD_ORG=${{ inputs.itk-python-package-org }} | ||
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 | ||
chmod u+x macpython-download-cache-and-build-module-wheels.sh | ||
|
||
- name: 'Build 🐍 Python 📦 package' | ||
shell: bash | ||
run: | | ||
rm -rf dist | ||
|
||
export ITK_PACKAGE_VERSION=${{ inputs.itk-wheel-tag }} | ||
export ITKPYTHONPACKAGE_TAG=${{ inputs.itk-python-package-tag }} | ||
export ITKPYTHONPACKAGE_ORG=${{ inputs.itk-python-package-org }} | ||
export ITK_MODULE_PREQ=${{ inputs.itk-module-deps }} | ||
export MACOSX_DEPLOYMENT_TARGET=10.9 | ||
if [ -z ${{ inputs.cmake-options }} ]; then | ||
CMAKE_OPTIONS="" | ||
else | ||
CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}" | ||
fi | ||
./macpython-download-cache-and-build-module-wheels.sh $CMAKE_OPTIONS "3.${{ matrix.python3-minor-version }}" | ||
|
||
- name: Set up Python 3.11 for Validation | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Validate build output | ||
shell: bash | ||
run: | | ||
python -m pip install twine | ||
ls dist/ | ||
|
||
WHEEL_PATTERN="dist/itk_*macosx*.whl" | ||
EXPECTED_WHEEL_COUNT=1 | ||
|
||
WHEEL_COUNT=`(ls ${WHEEL_PATTERN} | wc -l)` | ||
if (( ${WHEEL_COUNT} != ${EXPECTED_WHEEL_COUNT} )); then | ||
echo "Expected ${EXPECTED_WHEEL_COUNT} wheels but found ${WHEEL_COUNT}" | ||
exit 1 | ||
fi | ||
|
||
python -m twine check ${WHEEL_PATTERN} | ||
|
||
- name: Publish Python package as GitHub Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: MacOSWheel3${{ matrix.python3-minor-version }} | ||
path: dist/*.whl | ||
#build-macos-py: | ||
#runs-on: macos-12 | ||
#strategy: | ||
#max-parallel: 2 | ||
#matrix: | ||
#python3-minor-version: ${{ fromJSON(inputs.python3-minor-versions) }} | ||
|
||
#steps: | ||
#- uses: actions/checkout@v3 | ||
|
||
#- name: 'Specific XCode version' | ||
#run: | | ||
#sudo xcode-select -s "/Applications/Xcode_13.2.1.app" | ||
|
||
#- name: Get specific version of CMake, Ninja | ||
#uses: lukka/[email protected] | ||
|
||
#- name: 'Fetch build script' | ||
#run: | | ||
#IPP_DOWNLOAD_GIT_TAG=${{ inputs.itk-python-package-tag }} | ||
#IPP_DOWNLOAD_ORG=${{ inputs.itk-python-package-org }} | ||
#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 | ||
#chmod u+x macpython-download-cache-and-build-module-wheels.sh | ||
|
||
#- name: 'Build 🐍 Python 📦 package' | ||
#shell: bash | ||
#run: | | ||
#rm -rf dist | ||
|
||
#export ITK_PACKAGE_VERSION=${{ inputs.itk-wheel-tag }} | ||
#export ITKPYTHONPACKAGE_TAG=${{ inputs.itk-python-package-tag }} | ||
#export ITKPYTHONPACKAGE_ORG=${{ inputs.itk-python-package-org }} | ||
#export ITK_MODULE_PREQ=${{ inputs.itk-module-deps }} | ||
#export MACOSX_DEPLOYMENT_TARGET=10.9 | ||
#if [ -z ${{ inputs.cmake-options }} ]; then | ||
#CMAKE_OPTIONS="" | ||
#else | ||
#CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}" | ||
#fi | ||
#./macpython-download-cache-and-build-module-wheels.sh $CMAKE_OPTIONS "3.${{ matrix.python3-minor-version }}" | ||
|
||
#- name: Set up Python 3.11 for Validation | ||
#uses: actions/setup-python@v5 | ||
#with: | ||
#python-version: "3.11" | ||
|
||
#- name: Validate build output | ||
#shell: bash | ||
#run: | | ||
#python -m pip install twine | ||
#ls dist/ | ||
|
||
#WHEEL_PATTERN="dist/itk_*macosx*.whl" | ||
#EXPECTED_WHEEL_COUNT=1 | ||
|
||
#WHEEL_COUNT=`(ls ${WHEEL_PATTERN} | wc -l)` | ||
#if (( ${WHEEL_COUNT} != ${EXPECTED_WHEEL_COUNT} )); then | ||
#echo "Expected ${EXPECTED_WHEEL_COUNT} wheels but found ${WHEEL_COUNT}" | ||
#exit 1 | ||
#fi | ||
|
||
#python -m twine check ${WHEEL_PATTERN} | ||
|
||
#- name: Publish Python package as GitHub Artifact | ||
#uses: actions/upload-artifact@v4 | ||
#with: | ||
#name: MacOSWheel3${{ matrix.python3-minor-version }} | ||
#path: dist/*.whl | ||
|
||
build-macos-arm-py: | ||
runs-on: macos-14 | ||
|
@@ -399,9 +399,9 @@ jobs: | |
publish-python-packages-to-pypi: | ||
needs: | ||
- build-linux-py | ||
- build-macos-py | ||
- build-macos-arm-py | ||
- build-windows-python-packages | ||
#- build-macos-py | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this what is causing a failure in KitwareMedical/HASI#88?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partially (I made a note there).