File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 4
4
### Packaging
5
5
- Bump minimum Python version to Python 3.6.
6
6
7
+ ### Added
8
+ - Support building x86-64 wheel on arm64 macOS machine. [ #114 ] ( https://github.com/PyO3/setuptools-rust/pull/114 )
9
+
7
10
### Changed
8
11
- Respect ` PYO3_PYTHON ` and ` PYTHON_SYS_EXECUTABLE ` environment variables if set. [ #96 ] ( https://github.com/PyO3/setuptools-rust/pull/96 )
9
12
- Add runtime dependency on setuptools >= 46.1. [ #102 ] ( https://github.com/PyO3/setuptools-rust/pull/102 )
Original file line number Diff line number Diff line change 1
1
import glob
2
2
import json
3
3
import os
4
+ import platform
4
5
import shutil
5
6
import sys
6
7
import subprocess
@@ -95,6 +96,9 @@ def run_for_extension(self, ext: RustExtension):
95
96
target_triple = "i686-pc-windows-msvc"
96
97
elif self .plat_name == "win-amd64" :
97
98
target_triple = "x86_64-pc-windows-msvc"
99
+ elif self .plat_name .startswith ("macosx-" ) and platform .machine () == "x86_64" :
100
+ # x86_64 or arm64 macOS targeting x86_64
101
+ target_triple = "x86_64-apple-darwin"
98
102
99
103
if target_triple is not None :
100
104
target_args = ["--target" , target_triple ]
You can’t perform that action at this time.
0 commit comments