Building Julia on Mac: python not found

Running make results in

xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

command line developer tools had been installed, but on getting prompt I downloaded it (again) to be on the safe side, which didn’t help. The problem apparently was my system was configured to use homebrew Python, and we (I and Gemini) tried to get around, among other things:

  • adding a line into make.user, redirecting to one of the Pythons (either the system Python 3.9.6, or homebrew Python 3.13.3)
  • setting environment directly in the terminal by calling PYTHON=/usr/local/bin/python make -j8
  • creating a link pointing to python
  • … and more in that kind

For the link pointing to python, it’s what I have now:

elk@Mac julia % ls -l /usr/local/bin/python          
lrwxr-xr-x  1 root  wheel  16 Nov  7 12:14 /usr/local/bin/python -> /usr/bin/python3
elk@Mac julia % /usr/local/bin/python 
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

I.e. call to /usr/local/bin/python apparently being intercepted by the system.

Any ideas? Upgrade from MacOS 15.7 to the MacOS 26 as the last resort :wink: ?

For the moment, I performed the build and tests on an old Ubuntu machine, just it is much slower than my M4 Mac.