pitrou commented on code in PR #12763:
URL: https://github.com/apache/arrow/pull/12763#discussion_r894477952
##########
dev/tasks/python-wheels/github.osx.arm64.yml:
##########
@@ -134,6 +134,8 @@ jobs:
$PYTHON -m venv test-arm64-env
source test-arm64-env/bin/activate
pip install --upgrade pip wheel
+ arch -arm64 pip install -r arrow/python/requirements-wheel-test.txt
Review Comment:
Ok, those are universal (or "fat") binaries:
```console
% file /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3: Mach-O
universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64]
[arm64:Mach-O 64-bit executable arm64]
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 (for
architecture x86_64): Mach-O 64-bit executable x86_64
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3 (for
architecture arm64): Mach-O 64-bit executable arm64
% file /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3: Mach-O
universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64]
[arm64:Mach-O 64-bit executable arm64]
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 (for
architecture x86_64): Mach-O 64-bit executable x86_64
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 (for
architecture arm64): Mach-O 64-bit executable arm64
% file /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3: Mach-O
universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64]
[arm64:Mach-O 64-bit executable arm64]
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 (for
architecture x86_64): Mach-O 64-bit executable x86_64
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 (for
architecture arm64): Mach-O 64-bit executable arm64
```
By default, therefore, they execute in arm64 mode:
```console
% /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c "import
platform; print(platform.machine())"
arm64
% arch -x86_64
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c "import
platform; print(platform.machine())"
x86_64
```
This is with macOS 11.2:
```console
% sw_vers
ProductName: macOS
ProductVersion: 11.2.3
BuildVersion: 20D91
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]