-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update workflow file to fix macarm64 install issue
- Loading branch information
Showing
4 changed files
with
33 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,15 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "*-win_amd64" | ||
CIBW_SKIP: "cp36-* pp*" | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheels64-${{ matrix.os }} | ||
|
@@ -35,13 +37,15 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: "*-win32" | ||
CIBW_SKIP: "cp36-* pp*" | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheels32-${{ matrix.os }} | ||
|
@@ -53,6 +57,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Build wheels | ||
|
@@ -73,51 +78,48 @@ jobs: | |
--exclude libdl.so.2 | ||
--wheel-dir {dest_dir} | ||
{wheel} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheels-${{ matrix.os }} | ||
path: wheelhouse/*.whl | ||
|
||
build_macos_arm64_wheels: | ||
build_wheels_macos_arm64: | ||
name: Build wheels on macOS ARM64 | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
architecture: [arm64] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_SKIP: "cp36-*" | ||
- name: Upload wheels | ||
uses: actions/[email protected] | ||
CIBW_SKIP: "cp36-* cp37-* cp38-* pp*" | ||
MACOSX_DEPLOYMENT_TARGET: 14.0 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheelsarm64-${{ matrix.os }} | ||
name: ibmdb-wheelsarm64 | ||
path: wheelhouse/*.whl | ||
|
||
build_wheels_macos_x86: | ||
name: Build wheels for macOS x86_64 | ||
runs-on: macos-13 | ||
|
||
strategy: | ||
matrix: | ||
architecture: [x86_64] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install cibuildwheel # Install cibuildwheel to build the wheels | ||
- name: Set macOS deployment target | ||
run: echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV | ||
|
||
- name: Build wheels with cibuildwheel | ||
run: | | ||
CIBW_ARCHS_MACOS="${{ matrix.architecture }}" | ||
python -m cibuildwheel --platform macos --output-dir ./wheelhouse | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_SKIP: "cp36-* pp*" | ||
MACOSX_DEPLOYMENT_TARGET: 10.15 | ||
|
||
- name: Upload wheels as artifacts | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
name: ibmdb-wheelsx86-${{ matrix.os }} | ||
path: wheelhouse/*.whl | ||
|
@@ -148,6 +150,7 @@ jobs: | |
rm -rf $PACKAGE | ||
env: | ||
VERSION: ${{ steps.version.outputs.VERSION}} | ||
|
||
- name: Upload sdist | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -156,7 +159,7 @@ jobs: | |
|
||
|
||
upload_pypi: | ||
needs: [build_sdist,build_wheels_linux, build_wheels_windows_64,build_wheels_windows_32, build_macos_arm64_wheels, build_wheels_macos_x86] | ||
needs: [build_wheels_windows_64, build_wheels_windows_32, build_wheels_linux, build_wheels_macos_arm64, build_wheels_macos_x86, build_sdist] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
|
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 |
---|---|---|
|
@@ -44,6 +44,7 @@ or | |
pip install git+https://[email protected]/ibmdb/python-ibm_db.git | ||
``` | ||
* `pip install ibm_db` installs python wheel images on Linux, Windows and MacOS(x64) for python v>=3.7 | ||
* MacOS(arm64) support python wheel images from python version 3.9 onwards. | ||
* If wheel image is not available or for AIX and zLiux, native C++ code of ibm_db requires in-system compilation. For such case, | ||
you should have a C++ compiler installed in the system. Make sure the commands `gcc --version` and `make --version` works | ||
fine on Linux and MacOS system. | ||
|
@@ -326,7 +327,7 @@ print('ODBC Test end') | |
## <a name="m1chip"></a> 3. ibm_db installation on MacOS M1/M2 Chip System (arm64 architecture) | ||
**Important: | ||
> [email protected].4 onwards supports native installation on MacOS ARM64(M* Chip/Apple Silicon Chip) system using clidriver/dsdriver version 12.1.0. | ||
> [email protected].5 onwards supports native installation on MacOS ARM64(M* Chip/Apple Silicon Chip) system using clidriver/dsdriver version 12.1.0. | ||
> You need **db2connect v12.1 license** to connect to z/OS or iSeries server from M1 Chip system. | ||
### Installation: | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
[tool.cibuildwheel.macos] | ||
[tool.cibuildwheel.macos] | ||
repair-wheel-command = "delocate-wheel --ignore-missing-dependencies --require-archs {delocate_archs} -w {dest_dir} -v {wheel}" | ||
skip = "cp36-macosx_x86_64" | ||
skip = "cp36-* pp*" |