Skip to content

Commit

Permalink
Configuration to deploy only Python 12-13 on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisluengo committed Jan 28, 2025
1 parent d2fe7fc commit 029b692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 64 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,66 +17,3 @@ jobs:
run: bash tools/build/deploy_linux.sh
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

deploy_macos_x86_64:
runs-on: macos-12

steps:
- uses: actions/checkout@v4

- name: Install
# Install libraries and Python packages we need
# Note that twine and delocate and so on are installed by deploy_macos.sh
# If Homebrew doesn't know the newest Python version or something like that, add:
# export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
# brew update
run: |
brew install libomp glfw
- name: Deploy
run: bash tools/build/deploy_macos.sh
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
HOMEBREW_DIR: /usr/local
BUILD_THREADS: 3
MACOSX_DEPLOYMENT_TARGET: 12.0

deploy_macos_aarch64:
runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: Install
# Install libraries and Python packages we need
# Note that twine and delocate and so on are installed by deploy_macos.sh
# If Homebrew doesn't know the newest Python version or something like that, add:
# export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
# brew update
run: |
brew install libomp glfw
- name: Deploy
run: bash tools/build/deploy_macos.sh
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
HOMEBREW_DIR: /opt/homebrew
BUILD_THREADS: 3
MACOSX_DEPLOYMENT_TARGET: 14.0

deploy_windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Install
# Install libraries and Python packages we need
run: |
choco install openjdk8 --no-progress --yes
python -m pip install wheel build twine wget
- name: Deploy
run: tools/build/deploy_windows.bat
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 2 additions & 1 deletion tools/build/manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yum -y install freeglut-devel java-1.8.0-openjdk-devel.x86_64
/opt/python/cp39-cp39/bin/python -m pip install cmake auditwheel
CMAKE=/opt/python/cp39-cp39/lib/python3.9/site-packages/cmake/data/bin/cmake
BUILD_THREADS=4
PYTHON_VERSIONS=(3.10 3.11 3.12 3.13)
PYTHON_VERSIONS=(3.12 3.13)
EXCLUDES=(libjvm.so libOpenGL.so.0 libGLX.so.0 libGLdispatch.so.0)

# /io is diplib repo
Expand All @@ -19,6 +19,7 @@ $CMAKE .. -DDIP_PYDIP_WHEEL_INCLUDE_LIBS=On

# Build wheels
for v in ${PYTHON_VERSIONS[@]}; do
/opt/python/cp${v/./}-cp${v/./}/bin/python -m pip install setuptools wheel
$CMAKE .. -DPython_EXECUTABLE=/opt/python/cp${v/./}-cp${v/./}/bin/python
make -j $BUILD_THREADS bdist_wheel
auditwheel repair ${EXCLUDES[@]/#/--exclude } pydip/staging/dist/*.whl
Expand Down

0 comments on commit 029b692

Please sign in to comment.