PyPy virtual environment can't find development libraries
With the following CMakeLists:
cmake_minimum_required(VERSION 3.18)
project(PyPyCheck)
set(Python_FIND_IMPLEMENTATIONS CPython PyPy)
find_package(Python COMPONENTS Interpreter Development)
And the following commands on macOS:
brew install pypy3
pypy3 -m venv pypyenv
. pypyenv/bin/activate
cmake -S . -B build
FindPython comes up with the built-in CPython 2.7, instead of PyPy. If you remove the Development request, then it finds PyPy.
sysconfig.get_paths()
seems to be just fine, and reports paths like /usr/local/Cellar/pypy3/7.3.1_1/libexec/include
, which have the expected contents.