Skip to content

Commit

Permalink
add wheel for psutil also for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
vot4anto committed Oct 10, 2024
1 parent bfe120d commit feb280c
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/macos_arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,49 @@ on: [workflow_dispatch]
env:
WHEEL_SDIR: wheelhouse
jobs:
build_psutil:
name: psutil ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: psutil
BUILD_COMMIT: release-6.0.0
WHEEL_SDIR: wheelhouse
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "cython wheel setuptools"
TEST_DEPENDS: "cython"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of psutil
run: |
echo $PATH
bash -x .github/workflows/build.sh
- name: Build Wheel of psutil
run: |
sudo apt install python3-virtualenv
- name: Build Wheel of pyproj
run: |
bash -x .github/workflows/wheel.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse

build_pyproj:
name: pyproj ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/macos_x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,49 @@ env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1

jobs:
build_psutil:
name: psutil ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: psutil
BUILD_COMMIT: release-6.0.0
WHEEL_SDIR: wheelhouse
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "cython wheel setuptools"
TEST_DEPENDS: "cython"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of psutil
run: |
echo $PATH
bash -x .github/workflows/build.sh
- name: Build Wheel of psutil
run: |
sudo apt install python3-virtualenv
- name: Build Wheel of pyproj
run: |
bash -x .github/workflows/wheel.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse

build_pyproj:
name: pyproj ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 2 additions & 1 deletion multibuild/common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ function get_os {
function get_platform {
# Report platform as given by uname
# Use any Python that comes to hand.
python3 -c 'import platform; print(platform.uname()[4])'
#python3 -c 'import platform; print(platform.uname()[4])'
python -c 'import platform; print(platform.uname()[4])'
}

if [ "$(get_platform)" == x86_64 ] || \
Expand Down

0 comments on commit feb280c

Please sign in to comment.