-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub Actions to deploy macOS aarch64.
- Loading branch information
1 parent
3650cdb
commit 3f19474
Showing
11 changed files
with
72 additions
and
165 deletions.
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Run this on MacOS with Xcode from the diplib directory | ||
# set $PYPI_TOKEN to the PyPI token for the diplib project | ||
|
||
# Setup | ||
export PYTHON_VERSIONS=(3.8 3.9 3.10 3.11 3.12) | ||
brew install python@3.8 | ||
brew install python@3.9 | ||
brew install python@3.10 | ||
brew install python@3.11 | ||
brew install python@3.12 | ||
# The install above might have changed the default version of `python3`, so we need to reinstall packages: | ||
python3 -m pip install -U twine delocate | ||
|
||
mkdir build | ||
cd build | ||
wget -nv https://downloads.openmicroscopy.org/bio-formats/7.0.0/artifacts/bioformats_package.jar | ||
|
||
# Basic configuration | ||
cmake .. -DDIP_PYDIP_WHEEL_INCLUDE_LIBS=On -DBIOFORMATS_JAR=`pwd`/bioformats_package.jar -DDIP_BUILD_DIPIMAGE=Off | ||
|
||
# Build all wheels | ||
for v in ${PYTHON_VERSIONS[@]}; do | ||
export PYTHON=/usr/local/opt/python@Sv/bin/python$v | ||
$PYTHON -m pip install build | ||
cmake .. -DPYBIND11_PYTHON_VERSION=$v -DPYTHON_EXECUTABLE=$PYTHON | ||
make -j $BUILD_THREADS bdist_wheel | ||
delocate-wheel -e libjvm -w wheelhouse/ -v pydip/staging/dist/*.whl | ||
done; | ||
|
||
# Upload to pypi.org | ||
python3 -m twine upload -u __token__ -p $PYPI_TOKEN wheelhouse/*.whl |
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.