﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
7643	Mac ARM64 build broken: pyproject.toml lz4 compile uses system python	Tom Goddard	Zach Pearson	"The Mac ARM64 build is broken for me (goddard) on euclid.cgl.ucsf.edu

{{{
  Building wheel for lz4 (pyproject.toml): finished with status 'error'
  Building wheel for psutil (pyproject.toml): finished with status 'error'
}}}

The pip.log file indicates the problem is that it can't find Python.h because it is looking in a system installed location instead of the ChimeraX python install.

{{{
2022-09-20T22:34:00,589   gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynami\
c -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Ilz4libs -I/Library/Frameworks/Python.fra\
mework/Versions/3.9/include/python3.9 -c lz4/_version.c -o build/temp.macosx-10.9-universal2-cpython-3\
9/lz4/_version.o -O3 -Wall -Wundef                                                                     
2022-09-20T22:34:00,610   lz4/_version.c:32:10: fatal error: 'Python.h' file not found                 
2022-09-20T22:34:00,610   #include <Python.h>                                                          
2022-09-20T22:34:00,610            ^~~~~~~~~~                                                          
2022-09-20T22:34:00,615   1 error generated.    
}}}

This is on the ChimeraX Mac ARM build machine euclid.cgl.ucsf.edu.  The build currently works on the chimera account because the pip log indicates it finds the cached lz4 wheel apparently compiled from before pyproject.toml was used.  But on my account (goddard) I don't have that cached wheel.

The install needs to be fixed so it does not attempt to use the system Python.

I'll attach the full make output and pip.log.
"	defect	closed	blocked_external		Build System		fixed		Eric Pettersen				all	ChimeraX
