freezing-vegetable-92896
11/02/2021, 8:16 PMscs
in particular) to install on a mac. It looks like the issue is with pants picking up a universal binary and attempting to build an arm64 version of the library that we don't need and failing. I've been able to install in docker, but still struggling on mac native. One of my co-workers was able to get it to work by forcing an interpreter_constraints
to a version that doesn't have a universal binary installed. This feels like a fairly unmaintainable hack, so I'm hoping there is a better wayhappy-kitchen-89482
11/02/2021, 9:21 PMhappy-kitchen-89482
11/02/2021, 9:22 PMancient-vegetable-10556
11/02/2021, 9:23 PMancient-vegetable-10556
11/02/2021, 9:23 PMancient-vegetable-10556
11/02/2021, 9:24 PMfreezing-vegetable-92896
11/02/2021, 9:26 PMfreezing-vegetable-92896
11/02/2021, 9:27 PMhundreds-father-404
11/02/2021, 9:27 PM./pants package
, test
?freezing-vegetable-92896
11/02/2021, 9:27 PMfile python
/usr/bin/python: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture arm64e): Mach-O 64-bit executable arm64e
freezing-vegetable-92896
11/02/2021, 9:28 PMtest
freezing-vegetable-92896
11/02/2021, 9:28 PMhundreds-father-404
11/02/2021, 9:32 PMfile python
. Didn't realize macOS is doing that. I suspect Pex (which vendors pip) is detecting the wrong platform here, so trying to build a dependency with the wrong architecture
In the meantime to confirming that, you could try the workaround of setting [python-setup].interpreter_search_path
. See the warning box about macOS on https://www.pantsbuild.org/docs/python-backendfreezing-vegetable-92896
11/02/2021, 9:38 PMinterpreter_search_paths
. I've got a run going with that, unfortunately given the size of our repo it can take a little while before the error manifestshappy-kitchen-89482
11/02/2021, 9:46 PMhappy-kitchen-89482
11/02/2021, 9:46 PMhappy-kitchen-89482
11/02/2021, 9:46 PMfreezing-vegetable-92896
11/02/2021, 9:47 PM