installapplications icon indicating copy to clipboard operation
installapplications copied to clipboard

Update for M1

Open andrewzirkel opened this issue 4 years ago • 3 comments

These are the changes I had to make to run on M1. Feel free to take or leave any of them.

  1. In build_python_framework use 10.9 build of python to have an all intel build. Pyobjc did not have an M1 build that I could see.
  2. In generatejson.py another argument was added in an earlier commit.
  3. In py3_requirements.txt build all binaries, otherwise I got missing dependencies and a broken python.

andrewzirkel avatar Nov 05 '21 18:11 andrewzirkel

My 2c on the python pieces:

  • I'm not sure that dropping the build from 11 to 10.9 is the right call. Munki doesn't do this and it supports both Intel and Arm.
  • For pyobjc (and everything else), we should probably just add --no-binary :all: at the end of the py3_requirements.txt file and compile everything. Many wheels are x86_64 only at the moment.

bfreezy avatar Nov 05 '21 20:11 bfreezy

I agree and did test that but get an error message when running build_python_framework errors at Running setup.py install for pyobjc-framework-AutomaticAssessmentConfiguration with: file not found #import <AutomaticAssessmentConfiguration/AutomaticAssessmentConfiguration.h>

I haven't looked into it more than that yet.

andrewzirkel avatar Nov 12 '21 19:11 andrewzirkel

I probably should merge the changes I made on macadmins/python to the build script to make it work universally. But yes, 11.0 is not necessary at all.

erikng avatar Dec 02 '21 20:12 erikng