New script

This commit is contained in:
Armen Zambrano G 2021-09-10 12:08:34 -04:00
parent 9fee3079b5
commit 57383fb2e5
2 changed files with 14 additions and 0 deletions

View File

@ -61,6 +61,8 @@ jobs:
PACKAGE_NAME: psycopg2-binary PACKAGE_NAME: psycopg2-binary
PSYCOPG2_TESTDB: postgres PSYCOPG2_TESTDB: postgres
PSYCOPG2_TEST_FAST: 1 PSYCOPG2_TEST_FAST: 1
ARCHFLAGS: "-arch arm64"
_PYTHON_HOST_PLATFORM: "macosx-11.0-arm64"
- run: | - run: |
ls -l ls -l

View File

@ -0,0 +1,12 @@
#!/bin/bash
#
# Script to generate arm64 wheels on an Apple Silicon host
#
# TODO: File issue on why cross-compiling is not working
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip wheel
pip install cibuildwheel
# You will be prompted for your password in order to install Python under /Applications
PACKAGE_NAME=psycopg2-binary
CIBW_BUILD=cp38-macosx_arm64 cibuildwheel . --output-dir wheelhouse --platform macos 2>&1