Open elcritch opened 3 months ago
This seems to be a long standing problem with Macs - there are a number of ways in which you may end up with a Python without setuptools (e.g. when using homebrew and updating from an older version). I guess having that as a FAQ entry somewhere wouldn't hurt.
I got a new machine recently and have been setting up my dev environment again. When I run
npm install
on the codex master branch with node 18.15.0 I'm getting build errors. I've added the errors below for others to find.It appears to be due to my Python version which is Python 3.12 which doesn't bundle
distutils
by default anymore.I was able to resolve the issue by running
brew install python-setuptools
. You can see stackoverflow for more info.Unfortunately I'm not aware of how to resolve this for all users. Possibly updating some node deps would use updated python dependencies (gotta love rabbit trails ;)). Otherwise it might make sense to add a note in Codex or here.
Environment details:
OS: macOS 14.3.1 m3 python: 3.12 node: 18.15.0