quaint-telephone-89068
12/14/2022, 11:39 AMBootstrapping Pants using /usr/bin/python3
Installing pantsbuild.pants==2.14.0 into a virtual environment at /Users/hack/.cache/pants/setup/bootstrap-Darwin-arm64/2.14.0_py39
error: subprocess-exited-with-error
× Building wheel for setproctitle (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
creating build
creating build/temp.macosx-10.9-universal2-cpython-39
creating build/temp.macosx-10.9-universal2-cpython-39/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DSPT_VERSION=1.2.2 -D__darwin__=1 -I/Users/hack/.cache/pants/setup/bootstrap-Darwin-arm64/pants.pDEMtV/install/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c src/setproctitle.c -o build/temp.macosx-10.9-universal2-cpython-39/src/setproctitle.o
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
src/spt_python.h:16:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for setproctitle
ERROR: Could not build wheels for setproctitle, which is required to install pyproject.toml-based projects
Pants version
2.14.0
OS
MacOSX
Additional info
All prerequisite are installed:
• macOS.
• Python 3.9 discoverable on your PATH.
• A C compiler, system headers and Python headers (to compile native Python modules).
• Internet access (so that Pants can fully bootstrap itself).
I don't have Xcode.app installed and it is not listed as a prerequisite (/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers). Instead I have command line tools installed (xcode-select --install). And Python.h is located at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Headers/Python.h
pantsbuild/pants